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

-h help flag collides with user defined -h #645

Closed
nickgarvey opened this issue Jun 22, 2017 · 3 comments
Closed

-h help flag collides with user defined -h #645

nickgarvey opened this issue Jun 22, 2017 · 3 comments
Assignees

Comments

@nickgarvey
Copy link

Configuration:
User defines their own flag that uses -h

Expected behavior:
Running tool --help doesn't include -h as short hand for --help

Actual behavior:
-h is included for both --help and the custom flag

e.g.

ngarvey@challenger:~/projects/screeps-docker$ docker run tester cli --help

  Usage: cli [options]

  Connect to the CLI interface of the main process.

  Options:

    -h, --help         output usage information
    -p, --port <port>  Default is 21026
    -h, --host <host>  Default is localhost
@roman-vanesyan

This comment has been minimized.

@shadowspawn

This comment has been minimized.

@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Apr 21, 2020
@shadowspawn shadowspawn self-assigned this Apr 23, 2020
@shadowspawn
Copy link
Collaborator

The masked help options are no longer displayed from Commander v5.1.

https://github.com/tj/commander.js/releases/tag/v5.1.0

Thank you for your contributions.

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

No branches or pull requests

3 participants