diff --git a/src/parser/errors.ts b/src/parser/errors.ts index 146c01b56..507ef2e7e 100644 --- a/src/parser/errors.ts +++ b/src/parser/errors.ts @@ -19,7 +19,7 @@ export type Validation = { export class CLIParseError extends CLIError { public parse: CLIParseErrorOptions['parse'] - constructor(options: CLIParseErrorOptions & {exit?: number; message: string}) { + constructor(options: CLIParseErrorOptions & {message: string}) { options.message += '\nSee more help with --help' super(options.message, {exit: options.exit}) this.parse = options.parse