diff options
Diffstat (limited to 'deps/npm/lib/dist-tag.js')
-rw-r--r-- | deps/npm/lib/dist-tag.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/deps/npm/lib/dist-tag.js b/deps/npm/lib/dist-tag.js index d0bae9ab440..0e9d914d398 100644 --- a/deps/npm/lib/dist-tag.js +++ b/deps/npm/lib/dist-tag.js @@ -7,10 +7,14 @@ var semver = require('semver') var npm = require('./npm.js') var mapToRegistry = require('./utils/map-to-registry.js') var readLocalPkg = require('./utils/read-local-package.js') - -distTag.usage = 'npm dist-tag add <pkg>@<version> [<tag>]' + - '\nnpm dist-tag rm <pkg> <tag>' + - '\nnpm dist-tag ls [<pkg>]' +var usage = require('./utils/usage') + +distTag.usage = usage( + 'dist-tag', + 'npm dist-tag add <pkg>@<version> [<tag>]' + + '\nnpm dist-tag rm <pkg> <tag>' + + '\nnpm dist-tag ls [<pkg>]' +) distTag.completion = function (opts, cb) { var argv = opts.conf.argv.remain |