diff --git a/apps/cli/src/tools/send/send.program.ts b/apps/cli/src/tools/send/send.program.ts index 650f448e558..82699e273c3 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 {