Open
Description
Hi
I've got two options setup, one of which has a short code, which matches the first letter of the other long option.
bool option1Matched = false;
bool option2Matched = false;
p.Setup<string>('t', "option1").Callback(t => option1Matched = true);
p.Setup<string>("test2").Callback(t => option2Matched = true);
p.Parse(new[] {"-test2","value"});
Assert.IsFalse(option1Matched, "option1Matched should be false");
Assert.IsTrue(option2Matched, "option2Matched should be true");
The option passed in is "test2" but the "t" setup option is being called. Surely in this instance the most exact match (the second "test2" option) should be matched?