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