Skip to content

Not possible to parse byte nor uint #1683

Open
@sn4k3

Description

@sn4k3

Example:

new Option<byte>(new[] {"-v", "--version"}, "Sets the file format version"),
new Option<uint>(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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions