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

fix(usage): better audit/boolean flag usage output #3497

Merged
merged 1 commit into from Jul 12, 2021

Commits on Jul 12, 2021

  1. fix(usage): better audit/boolean flag usage output

    This adds the `audit` config item to the usage output of `npm ci`, and
    also tweaks how usage flags are shown for boolean options that do not
    default to false.  Their usage is shown as the `--no-x` form of the flag
    to better communicate that the flag is needed to turn that normally true
    option OFF.
    
    The description of `audit` was also updated to reflect that it runs on
    many different npm commands, not just install.  Because this flag is
    included in the usage of those commands it's best to let the assocation
    happen there instead of trying to be comprehensive in the description
    itself.
    
    A small fix to make `install-ci-test` not try to redefine its own
    usage, but to inherit from `ci` was also included.
    
    PR-URL: #3497
    Credit: @wraithgar
    Close: #3497
    Reviewed-by: @nlf
    wraithgar committed Jul 12, 2021
    Configuration menu
    Copy the full SHA
    89483e8 View commit details
    Browse the repository at this point in the history