dotnet / dotnet/command-line-api
Not possible to parse byte nor uint
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Example:
```C#
new Option(new[] {"-v", "--version"}, "Sets the file format version"),
new Option(new[] {"-v", "--version"}, "Sets the file format version"),
```
Produces:
```
Cannot parse argument '1' for option '-v' as expected type 'System.Byte'.
Cannot parse argument '11' for option '-v' as expected type 'System.UInt32'.
```
`ushort` works and gives error for negative numbers!
Contributor guide
Assessment
This issue has not been assessed yet.