Skip to content

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

Closed

Description

@nickgarvey

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

Activity

  1. segfaultmedaddy commented on Jun 24, 2017

    @segfaultmedaddy
  2. shadowspawn commented on Apr 26, 2019

    @shadowspawn
  3. added
    pending releaseMerged into a branch for a future release, but not released yet
    on Apr 21, 2020
  4. self-assigned this
    on Apr 23, 2020
  5. shadowspawn commented on Apr 25, 2020

    @shadowspawn
    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.

  6. removed
    pending releaseMerged into a branch for a future release, but not released yet
    on Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions