Skip to content

Error: UInt64Converter cannot convert from System.Int32. #1908

@claunia

Description

@claunia

Information

  • OS: macOS
  • Version: 0.51.1
  • Terminal: iTerm

Describe the bug
Using Spectre.Console.Cli declaring an ulong parameter there is no way to make it work at all.

To Reproduce
Declare an ulong parameter like this:

        [Description("Starting sector.")]
        [DefaultValue(0)]
        [CommandOption("-s|--start")]
        public ulong Start { get; init; }

Expected behavior
It works


Please upvote 👍 this issue if you are interested in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions