diff options
| author | Jack Nagel | 2012-08-13 23:47:05 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2012-08-20 14:16:08 -0500 | 
| commit | 3f9e88ae69b1ce7c854008b8cbebc38df11b8701 (patch) | |
| tree | 644fc153d16ce2ee82bf160d4df0f32e9fa148a8 /Library/Homebrew/cmd/options.rb | |
| parent | 9b1bb5821447f75c7a33534a466df9a81535d0bc (diff) | |
| download | brew-3f9e88ae69b1ce7c854008b8cbebc38df11b8701.tar.bz2 | |
Simplify build options API
Simplify access to the different forms of a formula's build options by
making options into real objects rather than strings, and expose both
the 'name' and 'flag' form.
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index 482f982cc..2f64f5b39 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -21,7 +21,7 @@ module Homebrew extend self      ff.each do |f|        next if f.build.empty?        if ARGV.include? '--compact' -        puts f.build.collect {|k,v| "--"+k} * " " +        puts f.build.as_flags * " "        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.build.each do |k,v| -      puts "--"+k -      puts "\t"+v +    f.build.each do |opt| +      puts opt.flag +      puts "\t"+opt.description      end    end  end | 
