Argu icon indicating copy to clipboard operation
Argu copied to clipboard

Attribute First is not printed correctly on help screen

Open ulve opened this issue 8 years ago • 1 comments

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>

ulve avatar May 17 '17 10:05 ulve

The MainCommand and First attributes are generally contradictory. It seems like this combination should be raising an error.

eiriktsarpalis avatar May 17 '17 12:05 eiriktsarpalis