Skip to content
Snippets Groups Projects
Unverified Commit 7e240288 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #8836 from MikeMcQuaid/options-nil-array

options: handle `nil` array.
parents 7a3f2769 dba1cfbe
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class Options
include Enumerable
def self.create(array)
new array.map { |e| Option.new(e[/^--([^=]+=?)(.+)?$/, 1] || e) }
new Array(array).map { |e| Option.new(e[/^--([^=]+=?)(.+)?$/, 1] || e) }
end
def initialize(*args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment