Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaijiro Wachi <daijiro.wachi@gmail.com>2016-04-27 00:04:26 +0300
committerRebecca Turner <me@re-becca.org>2016-04-28 03:29:02 +0300
commit20125f19b96fd05af63f8c0bd243ffb25780279a (patch)
tree2959dfe08e30126d3b1682da22091e84f7f65281 /lib/rebuild.js
parenta53feac2647f7dc4245f1700dfbdd1aba8745672 (diff)
lib: Refactor summary usage to use utils/usage
This also helps by DRYing up our lists of command aliases. Credit: @watilde Reviewed-By: @iarna PR-URL: https://github.com/npm/npm/pull/12485
Diffstat (limited to 'lib/rebuild.js')
-rw-r--r--lib/rebuild.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js
index 0e36c6361..29492c27f 100644
--- a/lib/rebuild.js
+++ b/lib/rebuild.js
@@ -6,8 +6,12 @@ var semver = require('semver')
var log = require('npmlog')
var npm = require('./npm.js')
var npa = require('npm-package-arg')
+var usage = require('./utils/usage')
-rebuild.usage = 'npm rebuild [[<@scope>/<name>]...]'
+rebuild.usage = usage(
+ 'rebuild',
+ 'npm rebuild [[<@scope>/<name>]...]'
+)
rebuild.completion = require('./utils/completion/installed-deep.js')