Skip to content
Snippets Groups Projects
Commit 0c27a876 authored by Jack Nagel's avatar Jack Nagel
Browse files

Don't shadow outer local variable

parent 528072f7
No related branches found
No related tags found
No related merge requests found
......@@ -106,10 +106,10 @@ class Options
when self then arg
when Option then new << arg
when Array
opts = arg.map do |arg|
case arg
when /^-[^-]+$/ then arg[1..-1].split(//)
else arg
opts = arg.map do |_arg|
case _arg
when /^-[^-]+$/ then _arg[1..-1].split(//)
else _arg
end
end.flatten
new(opts.map { |o| Option.new(o) })
......
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