Argu
Argu copied to clipboard
Attribute First is not printed correctly on help screen
Description
When i do myprogram.exe --help i get the following output
USAGE: DogCatapult.exe [--help] [--comment [<comment>]] [--status [<status>]] <id>´
but the annotation for id is:
[<MainCommand; ExactlyOnce; First>] Issue of id:string
The first is not represented in the help text but when trying to parse it is recognized.
DogCatapult.exe -c "Test" ABC-123
ERROR: argument '<id>' should precede all other arguments.
USAGE: DogCatapult.exe [--help] [--comment [<comment>]] [--status [<status>]] <id>
The MainCommand and First attributes are generally contradictory. It seems like this combination should be raising an error.