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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user