Skip to content

Commit e362c6d

Browse files
authored
fix(prefix): remove duplicate -g from usage output (#7944)
1 parent cfdf214 commit e362c6d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/commands/prefix.js

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ class Prefix extends BaseCommand {
55
static description = 'Display prefix'
66
static name = 'prefix'
77
static params = ['global']
8-
static usage = ['[-g]']
98

109
async exec () {
1110
return output.standard(this.npm.prefix)

tap-snapshots/test/lib/docs.js.test.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3754,15 +3754,15 @@ exports[`test/lib/docs.js TAP usage prefix > must match snapshot 1`] = `
37543754
Display prefix
37553755
37563756
Usage:
3757-
npm prefix [-g]
3757+
npm prefix
37583758
37593759
Options:
37603760
[-g|--global]
37613761
37623762
Run "npm help prefix" for more info
37633763
37643764
\`\`\`bash
3765-
npm prefix [-g]
3765+
npm prefix
37663766
\`\`\`
37673767
37683768
Note: This command is unaware of workspaces.

0 commit comments

Comments
 (0)