diff options
Diffstat (limited to 'Library/Contributions/examples/brew-options.rb')
| -rwxr-xr-x | Library/Contributions/examples/brew-options.rb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Library/Contributions/examples/brew-options.rb b/Library/Contributions/examples/brew-options.rb index bf7a0180a..4b110232d 100755 --- a/Library/Contributions/examples/brew-options.rb +++ b/Library/Contributions/examples/brew-options.rb @@ -1,9 +1,15 @@ +compact = ARGV.include? '--compact' + ARGV.formulae.each do |f| f.options rescue next - puts f.name - f.options.each do |o| - puts o[0] - puts "\t"+o[1] + if 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 - puts end |
