mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
parent
7a3f27694c
commit
dba1cfbec9
@ -68,7 +68,7 @@ class Options
|
|||||||
include Enumerable
|
include Enumerable
|
||||||
|
|
||||||
def self.create(array)
|
def self.create(array)
|
||||||
new array.map { |e| Option.new(e[/^--([^=]+=?)(.+)?$/, 1] || e) }
|
new Array(array).map { |e| Option.new(e[/^--([^=]+=?)(.+)?$/, 1] || e) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(*args)
|
def initialize(*args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user