diff options
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index c03fdeafe..273969c95 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -1,6 +1,16 @@ +require 'formula' + +def ff + if ARGV.include? "--all" + Formula.all + else + ARGV.formulae + end +end + module Homebrew extend self def options - ARGV.formulae.each do |f| + ff.each do |f| f.options rescue next if ARGV.include? '--compact' puts f.options.collect {|o| o[0]} * " " |
