aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-10 21:45:24 -0500
committerJack Nagel2014-08-10 21:45:24 -0500
commit52789374ddf73def688825dc22679de09af7d7b5 (patch)
tree51f100c39571c3b9a73cfef4290809c3f65292a7 /Library/Homebrew/cmd/options.rb
parente38cfd4f9843b7d355bf66b71d812093258478dd (diff)
downloadhomebrew-52789374ddf73def688825dc22679de09af7d7b5.tar.bz2
Disconnect defined options from the build object
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-rw-r--r--Library/Homebrew/cmd/options.rb6
1 files changed, 3 insertions, 3 deletions
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