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

helpOption does not support more than 2 flags #1862

Closed
mitsukuri opened this issue Apr 15, 2023 · 2 comments
Closed

helpOption does not support more than 2 flags #1862

mitsukuri opened this issue Apr 15, 2023 · 2 comments

Comments

@mitsukuri
Copy link

mitsukuri commented Apr 15, 2023

For example, using .helpOption ('-h, --help, --something-else') and running with --something-else results in

error: unknown option '--something-else', while -h and --help still work.

Use case: not sure about others, but me personally, I'd also like to add -? as an extra help flag.

@shadowspawn
Copy link
Collaborator

Options support a short flag and a long flag, and this applies to the built-in version and help options too.

@mitsukuri
Copy link
Author

I see, so I guess no luck adding a third option.

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

No branches or pull requests

2 participants