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

Add a way to override help and version help message #963

Commits on Jun 25, 2019

  1. Add a way to override help and version help message

    Close tj#47.
    
    Add override for the help message by calling program.help(message).
    
    Add override for the version message by calling
    program.version(version, flag, message);
    Ivan committed Jun 25, 2019
    Configuration menu
    Copy the full SHA
    c9cc1cc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3984bb View commit details
    Browse the repository at this point in the history
  3. Remove comma dangle

    Ivan committed Jun 25, 2019
    Configuration menu
    Copy the full SHA
    b2e397c View commit details
    Browse the repository at this point in the history
  4. Add missing JSDoc for help

    Ivan committed Jun 25, 2019
    Configuration menu
    Copy the full SHA
    a7eb49a View commit details
    Browse the repository at this point in the history
  5. Fix sub-command help flags, add documentation on help flags

    Sub-commands now inherit the help flags of their parent. These
    can be overriden by calling ".help" on the sub-commands.
    
    Added a test to cover these cases. Updated the example to also
    demonstrate this feature.
    
    Improved documentation on help and outputHelp functions for
    both JS and TypeScript.
    idmontie authored and Ivan committed Jun 25, 2019
    Configuration menu
    Copy the full SHA
    f204dfd View commit details
    Browse the repository at this point in the history
  6. Keep help as-is, add helpOption method

    Ivan committed Jun 25, 2019
    Configuration menu
    Copy the full SHA
    14f54c5 View commit details
    Browse the repository at this point in the history