aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-08-29 18:46:31 +0100
committerMax Howell2009-08-29 18:46:31 +0100
commite2d937d751db58ae876fa6c49e8868c5889593c4 (patch)
tree993ef8f124fa43562f36b85c0f885a6f5a531d11
parent7843be15569c0f25dfadf539e181c7cd088c579e (diff)
downloadhomebrew-e2d937d751db58ae876fa6c49e8868c5889593c4.tar.bz2
brew install lists available install options
brew install without additional arguments that is.
-rwxr-xr-xbin/brew8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 1c5b1573b..7e1bd720b 100755
--- a/bin/brew
+++ b/bin/brew
@@ -68,6 +68,14 @@ begin
end
when 'install'
+ if ARGV.named_empty?
+ # TODO I tried to columnise it using the 'column' utility but it uses
+ # tabs rather than spaces and the output looked wrong
+ puts "Available formulae:"
+ (HOMEBREW_PREFIX+'Library'+'Formula').children.each {|f| puts f.basename('.rb') }
+ exit 0
+ end
+
# we need to ensure a pristine ENV for each process or the formula
# will start with the ENV from the previous build
ARGV.formulae.each do |f|