aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/rbw/main.rs')
-rw-r--r--src/bin/rbw/main.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs
index decdeb4..badff67 100644
--- a/src/bin/rbw/main.rs
+++ b/src/bin/rbw/main.rs
@@ -299,7 +299,11 @@ fn main(opt: Opt) {
} => commands::add(
&name,
user.as_deref(),
- uri.to_vec(),
+ uri.iter()
+ // XXX not sure what the ui for specifying the match type
+ // should be
+ .map(|uri| (uri.clone(), None))
+ .collect::<Vec<_>>(),
folder.as_deref(),
),
Opt::Generate {
@@ -327,7 +331,11 @@ fn main(opt: Opt) {
commands::generate(
name.as_deref(),
user.as_deref(),
- uri.to_vec(),
+ uri.iter()
+ // XXX not sure what the ui for specifying the match type
+ // should be
+ .map(|uri| (uri.clone(), None))
+ .collect::<Vec<_>>(),
folder.as_deref(),
*len,
ty,