Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add "issues" alias for "bugs" #2824

Closed
wants to merge 3 commits into from

3 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 1, 2012
  1. @mfncooper
Commits on Sep 16, 2012
  1. @mfncooper

    Merge pull request #2772 from mfncooper/fix_run_no_command

    mfncooper authored
    Improved error message when runScript command is omitted
Commits on Sep 21, 2012
  1. @brianloveswords
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +1 −0  lib/npm.js
  2. +1 −0  lib/run-script.js
View
1  lib/npm.js
@@ -96,6 +96,7 @@ var commandCache = {}
, "se" : "search"
, "author" : "owner"
, "home" : "docs"
+ , "issues": "bugs"
, "unstar": "star" // same function
, "apihelp" : "help"
, "login": "adduser"
View
1  lib/run-script.js
@@ -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()
Something went wrong with that request. Please try again.