aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/rbw/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-04-19 05:42:22 -0400
committerJesse Luehrs <doy@tozt.net>2020-04-19 05:42:22 -0400
commite323935ae8bd89560c0cdc6d6e6f873b0072650a (patch)
tree50613a510d1c4415b449eeb5082a1ed81551e33e /src/bin/rbw/main.rs
parent32db6b408b9a3070795f7a29ba5c429471fb056b (diff)
downloadrbw-e323935ae8bd89560c0cdc6d6e6f873b0072650a.tar.gz
rbw-e323935ae8bd89560c0cdc6d6e6f873b0072650a.zip
allow getting notes along with a password
Diffstat (limited to 'src/bin/rbw/main.rs')
-rw-r--r--src/bin/rbw/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs
index 90ef95e..31f7fd0 100644
--- a/src/bin/rbw/main.rs
+++ b/src/bin/rbw/main.rs
@@ -30,7 +30,8 @@ fn main() {
.subcommand(
clap::SubCommand::with_name("get")
.arg(clap::Arg::with_name("name").required(true))
- .arg(clap::Arg::with_name("user")),
+ .arg(clap::Arg::with_name("user"))
+ .arg(clap::Arg::with_name("full").long("full")),
)
.subcommand(
clap::SubCommand::with_name("add")
@@ -103,6 +104,7 @@ fn main() {
("get", Some(smatches)) => commands::get(
smatches.value_of("name").unwrap(),
smatches.value_of("user"),
+ smatches.is_present("full"),
)
.context("get"),
// this unwrap is safe because name is marked .required(true)