Skip to content

Commit

Permalink
fix(prefix): remove duplicate -g from usage output (npm#7944)
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar authored Dec 2, 2024
1 parent cfdf214 commit e362c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/commands/prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class Prefix extends BaseCommand {
static description = 'Display prefix'
static name = 'prefix'
static params = ['global']
static usage = ['[-g]']

async exec () {
return output.standard(this.npm.prefix)
Expand Down
4 changes: 2 additions & 2 deletions tap-snapshots/test/lib/docs.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3754,15 +3754,15 @@ exports[`test/lib/docs.js TAP usage prefix > must match snapshot 1`] = `
Display prefix
Usage:
npm prefix [-g]
npm prefix
Options:
[-g|--global]
Run "npm help prefix" for more info
\`\`\`bash
npm prefix [-g]
npm prefix
\`\`\`
Note: This command is unaware of workspaces.
Expand Down

0 comments on commit e362c6d

Please sign in to comment.