Consider the following class:
class Parameters
{
[Option("bool")]
public bool Bool { get; set; }
[Option("nullable-bool")]
public bool? NullableBool { get; set; }
}
It works fine for such arguments: --bool --nullable-bool true but doesn't work for --bool --nullable-bool.
I suggest making it working for nullable bool types.
Consider the following class:
It works fine for such arguments:
--bool --nullable-bool truebut doesn't work for--bool --nullable-bool.I suggest making it working for nullable bool types.