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.
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".