diff options
author | isaacs <i@izs.me> | 2010-09-22 03:36:13 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-09-22 03:36:13 +0400 |
commit | 216d89f90312564a6837b716313f504f37700677 (patch) | |
tree | cfe7b2c0f092ba237f8bd67adf7264eacb825ed5 /cli.js | |
parent | 45a81e307f7a65e5eab3f7885cd2934d2471c550 (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-x | cli.js | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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) |