diff options
author | Gar <gar+gh@danger.computer> | 2021-07-02 00:55:46 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-07-12 19:05:44 +0300 |
commit | 89483e888acc56386b9ebc4d70a4676e4a5a5cb1 (patch) | |
tree | aa28aad88eb5b63236af8714e172b19dbb9fb985 /lib/ci.js | |
parent | c3bd10e461976a073e6a898c46f8bde28b17668f (diff) |
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: https://github.com/npm/cli/pull/3497
Credit: @wraithgar
Close: #3497
Reviewed-by: @nlf
Diffstat (limited to 'lib/ci.js')
-rw-r--r-- | lib/ci.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -33,6 +33,7 @@ class CI extends ArboristWorkspaceCmd { /* istanbul ignore next - see test/lib/load-all-commands.js */ static get params () { return [ + 'audit', 'ignore-scripts', 'script-shell', ] |