From f7d8003f3b605eb1c25b6f55f88b2bef49c89f8f Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 29 Aug 2009 18:46:31 +0100 Subject: [PATCH] brew install lists available install options brew install without additional arguments that is. --- bin/brew | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/brew b/bin/brew index 1c5b1573b8..7e1bd720b6 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|