updated command-line-args

This commit is contained in:
Lloyd Brookes
2014-06-04 08:54:37 +01:00
parent 913f6573c5
commit 7e9b67df57
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
var dope = require("console-dope"),
connect = require("connect"),
http = require("http"),
parseArgv = require("command-line-args"),
cliArgs = require("command-line-args"),
w = require("wodge"),
path = require("path"),
loadConfig = require("config-master"),
@ -37,14 +37,14 @@ var storedConfig = loadConfig(
/* override stored config with values parsed from command line */
try {
var argv = parseArgv([
var argv = cliArgs([
{ name: "port", alias: "p", type: Number, defaultOption: true, value: 8000 },
{ name: "log-format", alias: "f", type: String },
{ name: "help", alias: "h", type: Boolean },
{ name: "directory", alias: "d", type: String, value: process.cwd() },
{ name: "config", type: Boolean },
{ name: "compress", alias: "c", type: Boolean }
]);
]).parse();
} catch(err){
halt(err.message);
}