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:
authorisaacs <i@izs.me>2010-09-29 04:02:17 +0400
committerisaacs <i@izs.me>2010-09-29 04:02:17 +0400
commit42c6fd209a825e0f5a74663704943272065a414f (patch)
treef9425603ff929c9c9b591c4826673b1365baf5bc /lib/rebuild.js
parent0164a0df44ae573137d43e3a3df84d032e7345bb (diff)
Print nice short "usage" lines when doing -h, -?, or --help
Diffstat (limited to 'lib/rebuild.js')
-rw-r--r--lib/rebuild.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js
index c7feffedb..8f393e880 100644
--- a/lib/rebuild.js
+++ b/lib/rebuild.js
@@ -12,6 +12,8 @@ var readInstalled = require("./utils/read-installed")
, chain = require("./utils/chain")
, readJson = require("./utils/read-json")
+rebuild.usage = "npm rebuild [<name>[@<version>] [name[@<version>] ...]]"
+
function rebuild (args, cb) {
log.verbose(args, "rebuild")
lookupArgs(args, function (er, args) {