From 04341b0319aa798a663aee4410898426e7228515 Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 27 Nov 2024 08:53:09 -0800 Subject: [PATCH] fix(prefix): remove duplicate -g from usage output --- lib/commands/prefix.js | 1 - tap-snapshots/test/lib/docs.js.test.cjs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/commands/prefix.js b/lib/commands/prefix.js index da8702cf91caa..907ed5af2c179 100644 --- a/lib/commands/prefix.js +++ b/lib/commands/prefix.js @@ -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) diff --git a/tap-snapshots/test/lib/docs.js.test.cjs b/tap-snapshots/test/lib/docs.js.test.cjs index 9a75dd12b04bb..95b4684a695ab 100644 --- a/tap-snapshots/test/lib/docs.js.test.cjs +++ b/tap-snapshots/test/lib/docs.js.test.cjs @@ -3754,7 +3754,7 @@ exports[`test/lib/docs.js TAP usage prefix > must match snapshot 1`] = ` Display prefix Usage: -npm prefix [-g] +npm prefix Options: [-g|--global] @@ -3762,7 +3762,7 @@ Options: Run "npm help prefix" for more info \`\`\`bash -npm prefix [-g] +npm prefix \`\`\` Note: This command is unaware of workspaces.