diff options
| author | Elliot Saba | 2014-11-15 12:03:27 -0800 | 
|---|---|---|
| committer | Jack Nagel | 2014-11-15 17:17:50 -0600 | 
| commit | 6a1f829cfa3beeb04cdf37d3b9f8969768800db2 (patch) | |
| tree | 86a2c9b88958e95be079261b5744b67960dc9974 | |
| parent | 824e187803bc68775605bfad86795578a45f2a33 (diff) | |
| download | brew-6a1f829cfa3beeb04cdf37d3b9f8969768800db2.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 Homebrew/homebrew#34219.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/options.rb | 2 | 
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) | 
