Comparing version 3.5.3 to 3.5.4
@@ -37,10 +37,6 @@ // this file handles outputting usage instructions, | ||
} else { | ||
if (showHelpOnFail) { | ||
yargs.showHelp("error"); | ||
} | ||
if (showHelpOnFail) yargs.showHelp("error"); | ||
if (msg) console.error(msg); | ||
if (failMessage) { | ||
if (msg) { | ||
console.error(""); | ||
} | ||
if (msg) console.error(""); | ||
console.error(failMessage); | ||
@@ -47,0 +43,0 @@ } |
@@ -12,3 +12,3 @@ // validation-type-stuff, missing params, | ||
if (demanded._ && argv._.length < demanded._.count) { | ||
if (demanded._.msg) { | ||
if (demanded._.msg !== undefined) { | ||
usage.fail(demanded._.msg); | ||
@@ -15,0 +15,0 @@ } else { |
{ | ||
"name": "yargs", | ||
"version": "3.5.3", | ||
"version": "3.5.4", | ||
"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
69902
1293