aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_support.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb
index 9f30afbf7..caf82f765 100644
--- a/Library/Homebrew/formula_support.rb
+++ b/Library/Homebrew/formula_support.rb
@@ -172,6 +172,11 @@ class Option
@flag = '--'+name.to_s
end
+ def to_s
+ flag
+ end
+ alias_method :to_str, :to_s
+
def eql?(other)
@name == other.name
end