aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-05-23 14:32:39 -0400
committerJesse Luehrs <doy@tozt.net>2020-05-23 14:32:39 -0400
commite9ce02531fe0d5f844115153414909089f657aad (patch)
tree71749879700887a6fd102ffa2293e56b298cc6d2 /src
parentc48d15fff596b532c6a39283796aad157d78da4b (diff)
downloadrbw-e9ce02531fe0d5f844115153414909089f657aad.tar.gz
rbw-e9ce02531fe0d5f844115153414909089f657aad.zip
fix some structopt configuration
missed a few options when converting from clap
Diffstat (limited to 'src')
-rw-r--r--src/bin/rbw/main.rs17
1 files changed, 14 insertions, 3 deletions
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<String>,
},
@@ -66,7 +67,12 @@ enum Opt {
name: String,
#[structopt(help = "Username for the password entry")]
user: Option<String>,
- #[structopt(long, help = "URI for the password entry")]
+ #[structopt(
+ long,
+ help = "URI for the password entry",
+ multiple = true,
+ number_of_values = 1
+ )]
uri: Vec<String>,
#[structopt(long, help = "Folder for the password entry")]
folder: Option<String>,
@@ -92,7 +98,12 @@ enum Opt {
name: Option<String>,
#[structopt(help = "Username for the password entry")]
user: Option<String>,
- #[structopt(long, help = "URI for the password entry")]
+ #[structopt(
+ long,
+ help = "URI for the password entry",
+ multiple = true,
+ number_of_values = 1
+ )]
uri: Vec<String>,
#[structopt(long, help = "Folder for the password entry")]
folder: Option<String>,