Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute First is not printed correctly on help screen #77

Open
ulve opened this issue May 17, 2017 · 1 comment
Open

Attribute First is not printed correctly on help screen #77

ulve opened this issue May 17, 2017 · 1 comment
Labels

Comments

@ulve
Copy link

ulve commented May 17, 2017

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>
@eiriktsarpalis
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants