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

Allow positional arguments to be omitted from the help text #73

Closed
bruceg opened this issue Nov 19, 2020 · 0 comments · Fixed by #148
Closed

Allow positional arguments to be omitted from the help text #73

bruceg opened this issue Nov 19, 2020 · 0 comments · Fixed by #148

Comments

@bruceg
Copy link
Contributor

bruceg commented Nov 19, 2020

I have been using argh to develop a new cargo command. Cargo passes the actual command being executed as the first command line argument. In order to capture (and ignore) that argument, I have an extra positional argument in the structure, followed by the real positional arguments. However, this first argument shows up in the command line help and is quite confusing as users should not actually enter it. It would be good to have a flag that omits a positional argument (and possibly others) from the generated help text.

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