Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(prefix): remove duplicate -g from usage output #7944

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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