brew install lists available install options

brew install without additional arguments that is.
This commit is contained in:
Max Howell 2009-08-29 18:46:31 +01:00
parent a67cf9bef2
commit f7d8003f3b

View File

@ -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|