aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 3aca80feb..9d6f525ba 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -497,16 +497,12 @@ class Formula
"keg_only" => keg_only?,
"dependencies" => deps.map(&:name),
"conflicts_with" => conflicts.map(&:name),
- "options" => [],
"caveats" => caveats
}
- build.each do |opt|
- hsh["options"] << {
- "option" => "--"+opt.name,
- "description" => opt.description
- }
- end
+ hsh["options"] = build.map { |opt|
+ { "option" => opt.flag, "description" => opt.description }
+ }
if rack.directory?
rack.subdirs.each do |keg|