diff options
author | isaacs <i@izs.me> | 2011-10-04 21:43:24 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-04 21:43:24 +0400 |
commit | 1649ce8d2a6d59198344078285b3688af3525ff4 (patch) | |
tree | c807ce931990b8978103312f82294cf6dbdf3713 /lib | |
parent | 25a9b0e19f552137ec73ba1b5fdc225dafe83343 (diff) |
star should output usage if no args
Diffstat (limited to 'lib')
-rw-r--r-- | lib/star.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/star.js b/lib/star.js index befef0bbd..6bb0b5a45 100644 --- a/lib/star.js +++ b/lib/star.js @@ -17,6 +17,7 @@ star.completion = function (opts, cb) { } function star (args, cb) { + if (!args.length) return cb(star.usage) var s = npm.config.get("unicode") ? "\u2605 " : "(*)" , u = npm.config.get("unicode") ? "\u2606 " : "( )" , using = !(npm.command.match(/^un/)) |