aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/options.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-08-13 08:45:07 +0100
committerMike McQuaid2014-08-13 08:45:07 +0100
commitfe0f3cc2e53293cf0ce6dda945f52a0b949ed160 (patch)
tree49237b11ce1bcc29254a7ea20bfcea0cb2175dbe /Library/Homebrew/options.rb
parente8d4522914784b0f245c7e2a5d1872025644deb9 (diff)
downloadhomebrew-fe0f3cc2e53293cf0ce6dda945f52a0b949ed160.tar.bz2
Revert "Remove unused branches from Options.coerce"
This reverts commit cee42c339e7632eab15111e2c4e6c121ace6f9e2.
Diffstat (limited to 'Library/Homebrew/options.rb')
-rw-r--r--Library/Homebrew/options.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb
index 86be67ea9..6b982a405 100644
--- a/Library/Homebrew/options.rb
+++ b/Library/Homebrew/options.rb
@@ -116,6 +116,8 @@ class Options
def self.coerce(arg)
case arg
+ when self then arg
+ when Option then new << arg
when Array
opts = new
arg.each do |a|