Handling of multiple optional named arguments
Fips67 opened this issue · comments
Fips67 commented
Hi,
I have two named arguments with attributes defined as
[NamedArgument('a', "ArgumentA",
Constraint = NumArgsConstraint.Optional,
Action = ParseAction.Store,
Const = "MyConstValueA",
Description = "Argument A")]
public string A{ get; set; }
[NamedArgument('b', "ArgumentB",
Constraint = NumArgsConstraint.Optional,
Action = ParseAction.Store,
Const = "MyConstValueB
Description = "Argument B")]
public string B{ get; set; }
Command line is: MyApplication.exe -a -b
When leaving both arguments empty -a is reading -b as its value.
After Parse: A = -b and B = MyConstValueB
Expected: A = MyConstValueA and B = MyConstValueB
Is this functionality intended or how can it be defined to work as expected
Thanks,
Uwe
Nemec commented
That's probably a bug, I will take a look at it.
Nemec commented
This should be fixed now! v1.6.0.1 will be indexed by NuGet shortly, please give it a try and reopen this issue if you are still seeing problems. Thanks for pointing out this issue Uwe!