Skip to content

Commit

Permalink
Fix profile.js' call of usageUtils
Browse files Browse the repository at this point in the history
The right way, which is to create a single string as the 3rd argument.
  • Loading branch information
sandersn committed Feb 24, 2021
1 parent 20b6d52 commit ba8808c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/access.js
Expand Up @@ -10,7 +10,7 @@ const usageUtil = require('./utils/usage.js')
const getIdentity = require('./utils/get-identity.js')

const usage = usageUtil(
'npm access',
'access',
'npm access public [<package>]\n' +
'npm access restricted [<package>]\n' +
'npm access grant <read-only|read-write> <scope:team> [<package>]\n' +
Expand Down
1 change: 0 additions & 1 deletion lib/ls.js
Expand Up @@ -433,7 +433,6 @@ const ls = async (args) => {
args,
currentDepth: node[_depth],
nodeResult,
parseable,
seenNodes,
}))
},
Expand Down
5 changes: 3 additions & 2 deletions lib/profile.js
Expand Up @@ -15,8 +15,9 @@ const usageUtil = require('./utils/usage.js')

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

const completion = (opts, cb) => {
Expand Down

0 comments on commit ba8808c

Please sign in to comment.