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.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs
index 822819a..fd34d11 100644
--- a/src/bin/rbw/main.rs
+++ b/src/bin/rbw/main.rs
@@ -81,6 +81,8 @@ enum Opt {
field: Option<String>,
#[arg(long, help = "Display the notes in addition to the password")]
full: bool,
+ #[structopt(long, help = "Display output as JSON")]
+ raw: bool,
},
#[command(about = "Display the authenticator code for a given entry")]
@@ -319,12 +321,14 @@ fn main() {
folder,
field,
full,
+ raw,
} => commands::get(
name,
user.as_deref(),
folder.as_deref(),
field.as_deref(),
*full,
+ *raw,
),
Opt::Code { name, user, folder } => {
commands::code(name, user.as_deref(), folder.as_deref())