Skip to content

Commit

Permalink
fix(docs): ls command usage instructions
Browse files Browse the repository at this point in the history
PR-URL: #3423
Credit: @gurdiga
Close: #3423
Reviewed-by: @ruyadorno
  • Loading branch information
gurdiga authored and wraithgar committed Jun 16, 2021
1 parent 102d4e6 commit 993df30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LS extends ArboristWorkspaceCmd {

/* istanbul ignore next - see test/lib/load-all-commands.js */
static get usage () {
return ['npm ls [[<@scope>/]<pkg> ...]']
return ['[[<@scope>/]<pkg> ...]']
}

/* istanbul ignore next - see test/lib/load-all-commands.js */
Expand Down
2 changes: 1 addition & 1 deletion tap-snapshots/test/lib/load-all-commands.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ npm ls
List installed packages
Usage:
npm ls npm ls [[<@scope>/]<pkg> ...]
npm ls [[<@scope>/]<pkg> ...]
Options:
[-a|--all] [--json] [-l|--long] [-p|--parseable] [-g|--global] [--depth <depth>]
Expand Down
2 changes: 1 addition & 1 deletion tap-snapshots/test/lib/utils/npm-usage.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ All commands:
List installed packages
Usage:
npm ls npm ls [[<@scope>/]<pkg> ...]
npm ls [[<@scope>/]<pkg> ...]
Options:
[-a|--all] [--json] [-l|--long] [-p|--parseable] [-g|--global] [--depth <depth>]
Expand Down

0 comments on commit 993df30

Please sign in to comment.