diff --git a/src/funcs/parseArguments.ts b/src/funcs/parseArguments.ts index 07cf2b1..62b066c 100644 --- a/src/funcs/parseArguments.ts +++ b/src/funcs/parseArguments.ts @@ -72,10 +72,10 @@ export default function parseArguments(spec: { [key: string]: IOption }): { fail const verifyFunc = spec[argumentOption].verify; try { if (verifyFunc !== undefined && !verifyFunc(argumentValue)) { - failFunction(`the argument "${argumentOption}" has an invalid value "${argumentValue}"`); + failFunction(`Invalid value set for option "${argumentOption}": "${argumentValue}".`); } } catch (error) { - failFunction(`Error during verification; the argument "${argumentOption}" has an invalid value "${argumentValue}"`); + failFunction(`Invalid value set for option "${argumentOption}", the validation of "${argumentValue}" failed: ${String(error)}`); } //Remember the value, and if it is a required argument, mark that we have encountered it