aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 13624537c..f571b69dd 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -101,6 +101,10 @@ class Formula
active_spec.patches
end
+ def options
+ active_spec.options
+ end
+
def option_defined?(name)
active_spec.option_defined?(name)
end
@@ -440,7 +444,7 @@ class Formula
"caveats" => caveats
}
- hsh["options"] = build.map { |opt|
+ hsh["options"] = options.map { |opt|
{ "option" => opt.flag, "description" => opt.description }
}