diff options
Diffstat (limited to 'deps/npm/lib/link.js')
-rw-r--r-- | deps/npm/lib/link.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/npm/lib/link.js b/deps/npm/lib/link.js index 7ee518419f..3624a16c98 100644 --- a/deps/npm/lib/link.js +++ b/deps/npm/lib/link.js @@ -10,12 +10,15 @@ var chain = require('slide').chain var path = require('path') var build = require('./build.js') var npa = require('npm-package-arg') +var usage = require('./utils/usage') module.exports = link -link.usage = 'npm link (in package dir)' + - '\nnpm link [<@scope>/]<pkg>[@<version>]' + - '\n\nalias: npm ln' +link.usage = usage( + 'link', + 'npm link (in package dir)' + + '\nnpm link [<@scope>/]<pkg>[@<version>]' +) link.completion = function (opts, cb) { var dir = npm.globalDir |