yargs-parser
Advanced tools
Comparing version 9.0.1 to 9.0.2
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="9.0.2"></a> | ||
## [9.0.2](https://github.com/yargs/yargs-parser/compare/v9.0.1...v9.0.2) (2018-01-20) | ||
### Bug Fixes | ||
* nargs was still aggressively consuming too many arguments ([9b28aad](https://github.com/yargs/yargs-parser/commit/9b28aad)) | ||
<a name="9.0.1"></a> | ||
@@ -7,0 +17,0 @@ ## [9.0.1](https://github.com/yargs/yargs-parser/compare/v9.0.0...v9.0.1) (2018-01-20) |
@@ -306,3 +306,3 @@ var camelCase = require('camelcase') | ||
var ii | ||
var toEat = checkAllAliases(key, flags.nargs) | ||
const toEat = checkAllAliases(key, flags.nargs) | ||
@@ -319,7 +319,8 @@ // nargs will not consume flag arguments, e.g., -abc, --foo, | ||
for (ii = i + 1; ii < (Math.min(available, toEat) + i + 1); ii++) { | ||
const consumed = Math.min(available, toEat) | ||
for (ii = i + 1; ii < (consumed + i + 1); ii++) { | ||
setArg(key, args[ii]) | ||
} | ||
return (i + toEat) | ||
return (i + consumed) | ||
} | ||
@@ -326,0 +327,0 @@ |
{ | ||
"name": "yargs-parser", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"description": "the mighty option parser used by yargs", | ||
@@ -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
46110
728