-
Notifications
You must be signed in to change notification settings - Fork 551
Open
Description
Using the typical OPTS_END "--" after an array option type will not work as expected. Ex:
my_command --array 1 2 -- arg1 arg2
Updating https://github.com/erikhuda/thor/blob/master/lib/thor/parser/arguments.rb#L118 with:
def parse_array(name)
return shift if peek.is_a?(Array)
array = []
while current_is_value?
break unless @parsing_options
array << shift
end
array
end
fixes this issue as the peek will set @parsing_options to false when it hits the OPTS_END
Metadata
Metadata
Assignees
Labels
No labels