We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the typical OPTS_END "--" after an array option type will not work as expected. Ex:
OPTS_END
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
@parsing_options
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using the typical
OPTS_END
"--" after an array option type will not work as expected. Ex:Updating https://github.com/erikhuda/thor/blob/master/lib/thor/parser/arguments.rb#L118 with:
fixes this issue as the peek will set
@parsing_options
to false when it hits theOPTS_END
The text was updated successfully, but these errors were encountered: