From d1d52b3467d0b20e99c240247ef01005c49cb62b Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 30 Jul 2012 11:32:56 -0700 Subject: Add `option` to the DSL Closes Homebrew/homebrew#9982 --- Library/Homebrew/cmd/options.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Library/Homebrew/cmd') 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 -- cgit v1.2.3