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>2011-03-21 23:55:08 +0300
committerisaacs <i@izs.me>2011-03-22 01:56:47 +0300
commit5fb82016a9b0ba27a9d94600eaed5713c5ea9ac0 (patch)
tree0f89c3ad207e30c8dde5e1b80f181260a09173eb
parent355964f8bdd5283fc481d35f1e289810c9ea3638 (diff)
More config updates found goinng through documentation
-rw-r--r--lib/utils/default-config.js6
-rw-r--r--lib/utils/parse-args.js9
2 files changed, 9 insertions, 6 deletions
diff --git a/lib/utils/default-config.js b/lib/utils/default-config.js
index dce8aefb6..a5ae719a6 100644
--- a/lib/utils/default-config.js
+++ b/lib/utils/default-config.js
@@ -31,7 +31,6 @@ module.exports =
, logfd : stdio.stderrFD
, loglevel : "warn"
, long : false
- , "must-install" : true
, "node-version" : process.version
, npaturl : "http://npat.npmjs.org/"
, npat : false
@@ -57,7 +56,10 @@ module.exports =
, usage : false
, user : "nobody"
, username : ""
- , userconfig : path.resolve(process.env.HOME, ".npmrc")
+ , userconfig : path.resolve( process.env.HOME
+ , process.platform === "win32"
+ ? "npm-config" : ".npmrc")
, version : false
+ , viewer: "man"
, _exit : true
}
diff --git a/lib/utils/parse-args.js b/lib/utils/parse-args.js
index ceda3965e..52dd1aefb 100644
--- a/lib/utils/parse-args.js
+++ b/lib/utils/parse-args.js
@@ -24,13 +24,12 @@ exports.types =
, force : Boolean
, global : Boolean
, globalconfig : path
- , group : String
+ , group : [String, Number]
, gzipbin : String
, logfd : [Number, Stream]
, loglevel : ["silent","win","error","warn","info","verbose","silly"]
, long : Boolean
- , "must-install" : Boolean
- , "node-version" : String
+ , "node-version" : [false, String]
, npaturl : url
, npat : Boolean
, "onload-script" : [false, String]
@@ -43,7 +42,7 @@ exports.types =
, registry : url
, searchopts : String
, searchexclude: [null, String]
- , shell : String
+ , shell : path
, tag : String
, tar : String
, tmp : path
@@ -53,6 +52,7 @@ exports.types =
, username : String
, userconfig : path
, version : Boolean
+ , viewer: path
, _exit : Boolean
}
@@ -67,6 +67,7 @@ exports.shorthands =
, silent : ["--loglevel", "silent"]
, verbose : ["--loglevel", "verbose"]
, h : ["--usage"]
+ , H : ["--usage"]
, "?" : ["--usage"]
, help : ["--usage"]
, v : ["--version"]