diff options
| author | Adam Vandenberg | 2012-07-30 11:32:56 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:01:27 -0700 |
| commit | 402bd729f7e34071eda3bc2f2515a4d59cf3d024 (patch) | |
| tree | e8ea4410505529c2d9118d874cbffe47f0616fa5 /Library/Homebrew/cmd/options.rb | |
| parent | 0f07f367ee09c5f14426f29fab507fcf31632abc (diff) | |
| download | homebrew-402bd729f7e34071eda3bc2f2515a4d59cf3d024.tar.bz2 | |
Add `option` to the DSL
Closes #9982
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index a8dfcc04a..bd0c6b93b 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -19,9 +19,9 @@ end module Homebrew extend self def options ff.each do |f| - next if f.options.empty? + next if f.build.empty? if ARGV.include? '--compact' - puts f.options.collect {|o| o[0]} * " " + puts f.build.collect {|k,v| k} * " " else puts f.name if ff.length > 1 dump_options_for_formula f @@ -31,9 +31,9 @@ module Homebrew extend self end def dump_options_for_formula f - f.options.each do |o| - puts o[0] - puts "\t"+o[1] + f.options.each do |k,v| + puts k + puts "\t"+v end end end |
