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

Help interferes with "h" argument #92

Closed
vamichael opened this issue Jun 13, 2019 · 1 comment · Fixed by #121
Closed

Help interferes with "h" argument #92

vamichael opened this issue Jun 13, 2019 · 1 comment · Fixed by #121
Milestone

Comments

@vamichael
Copy link

vamichael commented Jun 13, 2019

I want to have an argument like:

# ARG_OPTIONAL_SINGLE([host], [h], [optional argument help msg])

But that interferes with the following, which also wants to use -h.

# ARG_HELP([The general script's help msg])

Is there a way to make ARG_HELP only work with --help instead?

@matejak
Copy link
Owner

matejak commented Jun 13, 2019

Future versions of Argbash could use -? instead of -h. However, ARG_HELP is basically a shorthand of ARG_OPTIONAL_ACTION(..., ..., [Prints help], [print_help])

matejak added a commit that referenced this issue Jul 11, 2020
- Allowed override of its name + short option.
- Allowed question mark '?' to be used as short option.

Fixes: #92
@matejak matejak added this to the 2.9.0 milestone Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants