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
path: root/cli.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-09-22 03:36:13 +0400
committerisaacs <i@izs.me>2010-09-22 03:36:13 +0400
commit216d89f90312564a6837b716313f504f37700677 (patch)
treecfe7b2c0f092ba237f8bd67adf7264eacb825ed5 /cli.js
parent45a81e307f7a65e5eab3f7885cd2934d2471c550 (diff)
Support "./foo" for root configs, and parse cli with the same logic that ini and env confs go through
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/cli.js b/cli.js
index 02a8f3071..6cc62d010 100755
--- a/cli.js
+++ b/cli.js
@@ -39,9 +39,6 @@ while (arg = argv.shift()) {
if (key === "help") conf[key] = true, key = null
flagsDone = (key === "")
} else if (key) {
- if (arg === "false" || arg === "null") arg = JSON.parse(arg)
- else if ( arg === "undefined" ) arg = undefined
- else if (!isNaN(arg)) arg = +arg
conf[key] = arg
key = null
} else arglist.push(arg)