aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/options.rb
diff options
context:
space:
mode:
authorElliot Saba2014-11-15 12:03:27 -0800
committerJack Nagel2014-11-15 17:17:50 -0600
commitd21ccee108fc56d56f912b10e48969c373356cb9 (patch)
tree1e2b96df05343bd74562794059101a5a4bc8730d /Library/Homebrew/options.rb
parent4b150ca99015033301219bb6d6e987f6c901c040 (diff)
downloadhomebrew-d21ccee108fc56d56f912b10e48969c373356cb9.tar.bz2
Ensure that equals options get parsed properly
Options such as --userimg=<path> should be parsed as an option with an equals in its name ("userimg=") and without the path argument in Option.name Closes #34219. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/options.rb')
-rw-r--r--Library/Homebrew/options.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb
index 6d6242171..209cfba62 100644
--- a/Library/Homebrew/options.rb
+++ b/Library/Homebrew/options.rb
@@ -58,7 +58,7 @@ class Options
include Enumerable
def self.create(array)
- new array.map { |e| Option.new(e[/^--(.+)$/, 1] || e) }
+ new array.map { |e| Option.new(e[/^--([^=]+=?)(.+)?$/, 1] || e) }
end
def initialize(*args)