Skip to content

Commit 8c44e99

Browse files
dwarduruyadorno
authored andcommitted
usage: Correct "npm COMMAND help" to "npm help COMMAND"
PR-URL: #2855 Credit: @dwardu Close: #2855 Reviewed-by: @ruyadorno, @darcyclarke
1 parent b0ae548 commit 8c44e99

File tree

4 files changed

+70
-70
lines changed

4 files changed

+70
-70
lines changed

lib/base-command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class BaseCommand {
1919

2020
// Mostly this just appends aliases, this could be more clear
2121
usage = usageUtil(this.constructor.name, usage)
22-
usage = `${usage}\n\nRun "npm ${this.constructor.name} help" for more info`
22+
usage = `${usage}\n\nRun "npm help ${this.constructor.name}" for more info`
2323
return usage
2424
}
2525

tap-snapshots/test-lib-dist-tag.js-TAP.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm dist-tag ls [<pkg>]
1515
1616
alias: dist-tags
1717
18-
Run "npm dist-tag help" for more info
18+
Run "npm help dist-tag" for more info
1919
`
2020

2121
exports[`test/lib/dist-tag.js TAP add missing pkg name > should exit usage error message 1`] = `
@@ -28,7 +28,7 @@ npm dist-tag ls [<pkg>]
2828
2929
alias: dist-tags
3030
31-
Run "npm dist-tag help" for more info
31+
Run "npm help dist-tag" for more info
3232
`
3333

3434
exports[`test/lib/dist-tag.js TAP add new tag > should return success msg 1`] = `
@@ -50,7 +50,7 @@ npm dist-tag ls [<pkg>]
5050
5151
alias: dist-tags
5252
53-
Run "npm dist-tag help" for more info
53+
Run "npm help dist-tag" for more info
5454
`
5555

5656
exports[`test/lib/dist-tag.js TAP ls in current package > should list available tags for current package 1`] = `
@@ -69,7 +69,7 @@ npm dist-tag ls [<pkg>]
6969
7070
alias: dist-tags
7171
72-
Run "npm dist-tag help" for more info
72+
Run "npm help dist-tag" for more info
7373
`
7474

7575
exports[`test/lib/dist-tag.js TAP ls on missing package > should log no dist-tag found msg 1`] = `
@@ -118,7 +118,7 @@ npm dist-tag ls [<pkg>]
118118
119119
alias: dist-tags
120120
121-
Run "npm dist-tag help" for more info
121+
Run "npm help dist-tag" for more info
122122
`
123123

124124
exports[`test/lib/dist-tag.js TAP remove non-existing tag > should log error msg 1`] = `

tap-snapshots/test-lib-publish.js-TAP.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ npm publish
1111
Usage:
1212
npm publish [<folder>] [--tag <tag>] [--access <public|restricted>] [--dry-run]
1313
14-
Run "npm publish help" for more info
14+
Run "npm help publish" for more info
1515
`

0 commit comments

Comments
 (0)