Skip to content

Conversation

@glenebob
Copy link

When processing scalar tokens, use the correct grouping routine.

This fixes a strange bug where a parameter name matching the previous parameter values causes the second parameter value to match it's name. Consider these two command lines:

var works = new string[]{"--argument1", "argument1Value", "--argument2", "argument2Value" };`
var doesNotWork = new string[]{"--argument1", "argument2", "--argument2", "argument2Value" };

After parsing doesNotWork, the value of --argument2 will be "argument2", instead of the expected "argument2Value".

When processing scalar tokens, use the correct grouping routine.
@nemecnemec merged commit 09677b1 into gsscoder:masterOct 14, 2017
@nemec
Copy link
Collaborator

Thanks, that seems to fix the issue!

@glenebobglenebob deleted the bug-parameter-name-matches-previous-value branch October 14, 2017 18:22
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@glenebob@nemec