Comparing version 6.2.4 to 6.2.5
@@ -74,2 +74,3 @@ "use strict"; | ||
hasOption(name) { | ||
name = name.split('.')[0]; | ||
return this.options.find(option => { | ||
@@ -178,3 +179,3 @@ return option.names.includes(name); | ||
for (const option of requiredOptions) { | ||
const value = values[option.names[0]]; | ||
const value = values[option.names[0].split('.')[0]]; | ||
if (typeof value === 'boolean') { | ||
@@ -181,0 +182,0 @@ console.error(`error: option \`${option.rawName}\` argument is missing`); |
{ | ||
"name": "cac", | ||
"version": "6.2.4", | ||
"version": "6.2.5", | ||
"description": "Simple yet powerful framework for building command-line apps.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
35720
652