From e9ce02531fe0d5f844115153414909089f657aad Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 23 May 2020 14:32:39 -0400 Subject: fix some structopt configuration missed a few options when converting from clap --- src/bin/rbw/main.rs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs index 3b6e9b6..6c3409d 100644 --- a/src/bin/rbw/main.rs +++ b/src/bin/rbw/main.rs @@ -34,7 +34,8 @@ enum Opt { help = "Fields to display. \ Available options are id, name, user, folder. \ Multiple fields will be separated by tabs.", - default_value = "name" + default_value = "name", + use_delimiter = true )] fields: Vec, }, @@ -66,7 +67,12 @@ enum Opt { name: String, #[structopt(help = "Username for the password entry")] user: Option, - #[structopt(long, help = "URI for the password entry")] + #[structopt( + long, + help = "URI for the password entry", + multiple = true, + number_of_values = 1 + )] uri: Vec, #[structopt(long, help = "Folder for the password entry")] folder: Option, @@ -92,7 +98,12 @@ enum Opt { name: Option, #[structopt(help = "Username for the password entry")] user: Option, - #[structopt(long, help = "URI for the password entry")] + #[structopt( + long, + help = "URI for the password entry", + multiple = true, + number_of_values = 1 + )] uri: Vec, #[structopt(long, help = "Folder for the password entry")] folder: Option, -- cgit v1.2.3-54-g00ecf