diff options
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb new file mode 100644 index 000000000..c03fdeafe --- /dev/null +++ b/Library/Homebrew/cmd/options.rb @@ -0,0 +1,17 @@ +module Homebrew extend self + def options + ARGV.formulae.each do |f| + f.options rescue next + if ARGV.include? '--compact' + puts f.options.collect {|o| o[0]} * " " + else + puts f.name + f.options.each do |o| + puts o[0] + puts "\t"+o[1] + end + puts + end + end + end +end
\ No newline at end of file |
