dotnet / dotnet/command-line-api

Not possible to parse byte nor uint

Open
#1,683 3 comments 4 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.