command-line-args
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -42,2 +42,10 @@ var w = require("wodge"); | ||
/* set defaults */ | ||
var optionsWithDefault = optionDefinitions.filter(function(option){ | ||
return option.value; | ||
}); | ||
optionsWithDefault.forEach(function(option){ | ||
output[option.name] = option.value; | ||
}); | ||
while (typeof(arg = argv.shift()) !== "undefined"){ | ||
@@ -77,5 +85,1 @@ if (longArg.test(arg)){ | ||
} | ||
// var a = [ "--colours", "green", "red", "yellow", "--tramps", "mike", "colin" ]; | ||
// // a.shift(); | ||
// console.dir(spliceWhile(a, /^\w+/)) |
{ | ||
"name": "command-line-args", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "Parse command line options", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/75lb/command-line-args.git", |
8451
10
230