aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-07-30 11:32:56 -0700
committerAdam Vandenberg2012-08-08 22:01:27 -0700
commitd1d52b3467d0b20e99c240247ef01005c49cb62b (patch)
treee050891e60e76d38dd671ddba97f9f9035771a07 /Library/Homebrew/cmd/options.rb
parent0df4c6a703d67db76fc31ee78aed3fc1eed12cfd (diff)
downloadbrew-d1d52b3467d0b20e99c240247ef01005c49cb62b.tar.bz2
Add `option` to the DSL
Closes Homebrew/homebrew#9982
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-rw-r--r--Library/Homebrew/cmd/options.rb10
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