From 4c4252348c538246e1072421d65f4558dc948080 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 1 Apr 2021 12:10:15 -0700 Subject: usage: specify the key each time for multiples If a user runs 'npm install -w foo bar baz', that won't set 'bar' and 'baz' as workspace names. The correct incantation is 'npm install -w foo -w bar -w baz'. PR-URL: https://github.com/npm/cli/pull/3016 Credit: @isaacs Close: #3016 Reviewed-by: @wraithgar --- tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tap-snapshots') diff --git a/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js b/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js index 152f1f7c7..a0b8d1999 100644 --- a/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js +++ b/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js @@ -335,7 +335,7 @@ All commands: npm docs [ [ ...]] Options: - [--browser|--browser ] [-w|--workspace [ ...]] [-ws|--workspaces] + [--browser|--browser ] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] alias: home @@ -370,7 +370,7 @@ All commands: npm exec --package=foo -c ' [args...]' Options: - [-w|--workspace [ ...]] [-ws|--workspaces] + [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] alias: x @@ -702,7 +702,7 @@ All commands: npm repo [ [ ...]] Options: - [--browser|--browser ] [-w|--workspace [ ...]] [-ws|--workspaces] + [--browser|--browser ] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] Run "npm help repo" for more info @@ -735,7 +735,7 @@ All commands: npm run-script [-- ] Options: - [-w|--workspace [ ...]] [-ws|--workspaces] + [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] aliases: run, rum, urn @@ -772,7 +772,7 @@ All commands: npm set-script [