Add "issues" alias for "bugs" #2824

Closed
wants to merge 3 commits into
from
View
@@ -96,6 +96,7 @@ var commandCache = {}
, "se" : "search"
, "author" : "owner"
, "home" : "docs"
+ , "issues": "bugs"
, "unstar": "star" // same function
, "apihelp" : "help"
, "login": "adduser"
View
@@ -67,6 +67,7 @@ runScript.completion = function (opts, cb) {
}
function runScript (args, cb) {
+ if (!args.length) return cb(runScript.usage)
var pkgdir = args.length === 1 ? process.cwd()
: path.resolve(npm.dir, args[0])
, cmd = args.pop()