commandlineparser / commandlineparser/commandline
Set to true nullable bool arguments without the value
Open
enhancement
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 478
- PR merge metrics
- No merged PRs in 30d
Description
Consider the following class:
```csharp
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.