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-08-25 23:26:44 +0400
committerisaacs <i@izs.me>2010-08-26 05:01:23 +0400
commit7e9a81b51cc437d6199b51150abde48212bc497b (patch)
tree34bdb0ea9e22d18423e497a0083e54be1077c1e7
parentee7eb5063a466543b043d87993f925fb5a60aac0 (diff)
cleaner messaging
-rw-r--r--lib/rebuild.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js
index 5d74ab5a9..f45375db9 100644
--- a/lib/rebuild.js
+++ b/lib/rebuild.js
@@ -13,9 +13,10 @@ var readInstalled = require("./utils/read-installed")
, readJson = require("./utils/read-json")
function rebuild (args, cb) {
- log(args, "rebuild")
+ log.verbose(args, "rebuild")
lookupArgs(args, function (er, args) {
if (er) return cb(er)
+ if (!args.length) return log("Nothing to do", "rebuild", cb)
asyncMap(args, function (arg, cb) {
log.verbose(arg, "rebuild")
arg = arg.split("@")