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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy