diff options
| author | Jack Nagel | 2014-08-10 21:45:24 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-08-10 21:45:24 -0500 | 
| commit | 2f1d40a76437f94720c9969d11ff10555efc5809 (patch) | |
| tree | 95f95f79490e79c1758d90277c2cb91b72be7c23 /Library/Homebrew/cmd | |
| parent | 8fc4bba03a1b3d0446ed52c0c294c59b28be0cf9 (diff) | |
| download | brew-2f1d40a76437f94720c9969d11ff10555efc5809.tar.bz2 | |
Disconnect defined options from the build object
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 6 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 1ce1966e1..fd08845c4 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -127,7 +127,7 @@ module Homebrew        end      end -    unless f.build.empty? +    unless f.options.empty?        ohai "Options"        Homebrew.dump_options_for_formula f      end diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index fcc149adf..ba03abb66 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -14,9 +14,9 @@ module Homebrew    def puts_options(formulae)      formulae.each do |f| -      next if f.build.empty? +      next if f.options.empty?        if ARGV.include? '--compact' -        puts f.build.as_flags.sort * " " +        puts f.options.as_flags.sort * " "        else          puts f.name if formulae.length > 1          dump_options_for_formula f @@ -26,7 +26,7 @@ module Homebrew    end    def dump_options_for_formula f -    f.build.sort_by(&:flag).each do |opt| +    f.options.sort_by(&:flag).each do |opt|        puts "#{opt.flag}\n\t#{opt.description}"      end      puts "--devel\n\tinstall development version #{f.devel.version}" if f.devel  | 
