Comparing version 10.1.1 to 10.1.2
@@ -62,3 +62,2 @@ 'use strict' | ||
const options = yargs.getOptions() | ||
if (options.requiresArg.length > 0) { | ||
@@ -68,4 +67,7 @@ const missingRequiredArgs = [] | ||
options.requiresArg.forEach((key) => { | ||
// if the argument is not set in argv no need to check | ||
// whether a right-hand-side has been provided. | ||
if (!argv.hasOwnProperty(key)) return | ||
const value = argv[key] | ||
// if a value is explicitly requested, | ||
@@ -72,0 +74,0 @@ // flag argument as missing if it does not |
{ | ||
"name": "yargs", | ||
"version": "10.1.1", | ||
"version": "10.1.2", | ||
"description": "yargs the modern, pirate-themed, successor to optimist.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is too big to display
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
211195
3311