Skip to content

Commit ba8808c

Browse files
committed
Fix profile.js' call of usageUtils
The right way, which is to create a single string as the 3rd argument.
1 parent 20b6d52 commit ba8808c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/access.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const usageUtil = require('./utils/usage.js')
1010
const getIdentity = require('./utils/get-identity.js')
1111

1212
const usage = usageUtil(
13-
'npm access',
13+
'access',
1414
'npm access public [<package>]\n' +
1515
'npm access restricted [<package>]\n' +
1616
'npm access grant <read-only|read-write> <scope:team> [<package>]\n' +

lib/ls.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ const ls = async (args) => {
433433
args,
434434
currentDepth: node[_depth],
435435
nodeResult,
436-
parseable,
437436
seenNodes,
438437
}))
439438
},

lib/profile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ const usageUtil = require('./utils/usage.js')
1515

1616
const usage = usageUtil(
1717
'npm profile enable-2fa [auth-only|auth-and-writes]\n',
18-
'npm profile disable-2fa\n',
19-
'npm profile get [<key>]\n'
18+
'npm profile disable-2fa\n' +
19+
'npm profile get [<key>]\n' +
20+
'npm profile set <key> <value>'
2021
)
2122

2223
const completion = (opts, cb) => {

0 commit comments

Comments
 (0)