Permalink
Browse files

More config updates found goinng through documentation

  • Loading branch information...
1 parent 355964f commit 5fb82016a9b0ba27a9d94600eaed5713c5ea9ac0 @isaacs isaacs committed Mar 21, 2011
Showing with 9 additions and 6 deletions.
  1. +4 −2 lib/utils/default-config.js
  2. +5 −4 lib/utils/parse-args.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
}
View
@@ -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"]

0 comments on commit 5fb8201

Please sign in to comment.