@hyperone/cli-framework
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -101,6 +101,10 @@ | ||
} | ||
if (opts._unknown && opts._unknown.length > 0 && opts._unknown[0].startsWith('-')) { | ||
if (opts._unknown && opts._unknown.length > 0) { | ||
const option = opts._unknown[0]; | ||
const suggestion = meant(option, options.map(x => `--${x.name}`)); | ||
throw new UnknownOptionError(`Unknown parameter "${option}" for "${this.getFullName()}"`, suggestion); | ||
if (option.startsWith('--')) { | ||
const suggestion = meant(option, options.map(x => `--${x.name}`)); | ||
throw new UnknownOptionError(`Unknown parameter "${option}" for "${this.getFullName()}"`, suggestion); | ||
} else { | ||
throw new UnknownOptionError(`Unknown parameter "${option}" for "${this.getFullName()}". Have you forgotten the quotation marks?`); | ||
} | ||
} | ||
@@ -107,0 +111,0 @@ const missing = options.filter(x => x.required && typeof allOpts[x.name] == 'undefined').map(x => `--${x.name}`); |
{ | ||
"name": "@hyperone/cli-framework", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "6e7e9e3af14871e75cd1a6c44169924db05b3864" | ||
"gitHead": "2b8bd95a08b8382d7ecb6a894e126b34b6f10e6c" | ||
} |
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
12646
371