command-line-args
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -14,5 +14,5 @@ var w = require("wodge"); | ||
arg; | ||
argv = argv === process.argv ? argv.slice(2) : argv.slice(0); | ||
argv = argv || process.argv.slice(2); | ||
while (typeof(arg = argv.shift()) !== "undefined"){ | ||
@@ -49,3 +49,2 @@ if (longArg.test(arg)){ | ||
} else { | ||
console.error("DIDndd't match: " + arg) | ||
defaultValues.push(arg); | ||
@@ -70,4 +69,3 @@ } | ||
return output; | ||
} |
{ | ||
"name": "command-line-args", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Parse command line options", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/75lb/command-line-args.git", |
6284
162