Comparing version 0.4.0 to 0.5.0
12
index.js
@@ -364,2 +364,8 @@ var path = require('path'); | ||
var next = arg.slice(j+2); | ||
if (next === '-') { | ||
setArg(letters[j], next) | ||
continue; | ||
} | ||
if (/[A-Za-z]/.test(letters[j]) | ||
@@ -381,6 +387,6 @@ && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) { | ||
if (!broken) { | ||
var key = arg.slice(-1)[0]; | ||
var key = arg.slice(-1)[0]; | ||
if (!broken && key !== '-') { | ||
if (args[i+1] && !args[i+1].match(/^-/) | ||
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1]) | ||
&& !flags.bools[key] | ||
@@ -387,0 +393,0 @@ && (aliases[key] ? !flags.bools[aliases[key]] : true)) { |
{ | ||
"name" : "optimist", | ||
"version" : "0.4.0", | ||
"version" : "0.5.0", | ||
"description" : "Light-weight option parsing with an argv hash. No optstrings attached.", | ||
@@ -5,0 +5,0 @@ "main" : "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50784
27
1319