Skip to content

Commit 2a80dab

Browse files
authored
fix: typo in npm access usage (#7370)
Add closing `]` for optional owner parameter.
1 parent 4736b0d commit 2a80dab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/commands/access.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Access extends BaseCommand {
3636
]
3737

3838
static usage = [
39-
'list packages [<user>|<scope>|<scope:team> [<package>]',
39+
'list packages [<user>|<scope>|<scope:team>] [<package>]',
4040
'list collaborators [<package> [<user>]]',
4141
'get status [<package>]',
4242
'set status=public|private [<package>]',

tap-snapshots/test/lib/docs.js.test.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,7 @@ exports[`test/lib/docs.js TAP usage access > must match snapshot 1`] = `
25522552
Set access level on published packages
25532553
25542554
Usage:
2555-
npm access list packages [<user>|<scope>|<scope:team> [<package>]
2555+
npm access list packages [<user>|<scope>|<scope:team>] [<package>]
25562556
npm access list collaborators [<package> [<user>]]
25572557
npm access get status [<package>]
25582558
npm access set status=public|private [<package>]
@@ -2566,7 +2566,7 @@ Options:
25662566
Run "npm help access" for more info
25672567
25682568
\`\`\`bash
2569-
npm access list packages [<user>|<scope>|<scope:team> [<package>]
2569+
npm access list packages [<user>|<scope>|<scope:team>] [<package>]
25702570
npm access list collaborators [<package> [<user>]]
25712571
npm access get status [<package>]
25722572
npm access set status=public|private [<package>]

0 commit comments

Comments
 (0)