1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

[PM-24092] fix positional argument processing (#15756)

This commit is contained in:
✨ Audrey ✨
2025-08-04 15:45:17 -04:00
committed by GitHub
parent bddd81ce79
commit d5e78e9549

View File

@@ -149,11 +149,11 @@ export class SendProgram extends BaseProgram {
private templateCommand(): Command { private templateCommand(): Command {
return new Command("template") return new Command("template")
.argument("<object>", "Valid objects are: send.text, send.file") .argument("<object>", "Valid objects are: send.text, text, send.file, file")
.description("Get json templates for send objects") .description("Get json templates for send objects")
.action((options: OptionValues) => .action((object: string) => {
this.processResponse(new SendTemplateCommand().run(options.object)), this.processResponse(new SendTemplateCommand().run(object));
); });
} }
private getCommand(): Command { private getCommand(): Command {