Can't disable a boolean argument with a default value of True
-c false should turn off the switch for -c.
public bool MyValue { get { return _myValue; } set { _myValue = !value; } }
Just kidding.
That's actually a really good idea and it lets the boolean value be scripted: MyApplication.exe -c "$myBool"
I created a pull request for this. PR #133
Here is a solution I think is good. For long option, provide a 'no' option to negate it. Like "--dryrun" can be negated with "--nodryrun".
@igitur, as you can see in the issue history your PR is listerd here since you referenced this issue number in it, GitHub does this automatically. :)
To me it seems more like a bug then an enhancement. Either way it is a small thing and already fixed in other branches so implementing it might be an easy win for the project.