1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +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 {
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")
.action((options: OptionValues) =>
this.processResponse(new SendTemplateCommand().run(options.object)),
);
.action((object: string) => {
this.processResponse(new SendTemplateCommand().run(object));
});
}
private getCommand(): Command {