Skip to content

Commit

Permalink
star should output usage if no args
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 4, 2011
1 parent 25a9b0e commit 1649ce8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/star.js
Expand Up @@ -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/))
Expand Down

0 comments on commit 1649ce8

Please sign in to comment.