Skip to content

Anonymous value placed after a flag argument fails to be used #7

@lastunicorn

Description

@lastunicorn

Let a command named "display" have to parameters:

  • bool - name: "all"; short name: "a"
  • string - anonymous;

The command: app-name display -a John

  • is expected to display all the persons called "John".
  • it actually returns an error because the name "John" is mistakenly used as a value for the boolean parameter "all"
    DustInTheWind.ConsoleTools.Commando.MetadataModel.InvalidParameterValueException: 'John' is not a valid value for 'all'.

Same error is returned even if -- is used:
app-name display -a -- John

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions