diff --git a/src/lib/parsers/Args.ts b/src/lib/parsers/Args.ts index ef24980aa..8b851bcdb 100644 --- a/src/lib/parsers/Args.ts +++ b/src/lib/parsers/Args.ts @@ -628,10 +628,12 @@ export class Args { } protected unavailableArgument(type: string | IArgument) { + const name = typeof type === 'string' ? type : type.name; return err( new UserError({ identifier: Identifiers.ArgsUnavailable, - message: `The argument "${typeof type === 'string' ? type : type.name}" was not found.` + message: `The argument "${name}" was not found.`, + context: { name } }) ); }