From d5e78e95499f1c8d058743e21e1b2faca35dcc3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8=20Audrey=20=E2=9C=A8?= Date: Mon, 4 Aug 2025 15:45:17 -0400 Subject: [PATCH] [PM-24092] fix positional argument processing (#15756) --- apps/cli/src/tools/send/send.program.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/cli/src/tools/send/send.program.ts b/apps/cli/src/tools/send/send.program.ts index 650f448e55..82699e273c 100644 --- a/apps/cli/src/tools/send/send.program.ts +++ b/apps/cli/src/tools/send/send.program.ts @@ -149,11 +149,11 @@ export class SendProgram extends BaseProgram { private templateCommand(): Command { return new Command("template") - .argument("", "Valid objects are: send.text, send.file") + .argument("", "Valid objects are: send.text, text, send.file, file") .description("Get json templates for send objects") - .action((options: OptionValues) => - this.processResponse(new SendTemplateCommand().run(options.object)), - ); + .action((object: string) => { + this.processResponse(new SendTemplateCommand().run(object)); + }); } private getCommand(): Command {