diff options
Diffstat (limited to 'src/bin/rbw/main.rs')
-rw-r--r-- | src/bin/rbw/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs index 4c706bd..3bede5b 100644 --- a/src/bin/rbw/main.rs +++ b/src/bin/rbw/main.rs @@ -83,6 +83,8 @@ enum Opt { full: bool, #[structopt(long, help = "Display output as JSON")] raw: bool, + #[structopt(long, help = "Copy result to clipboard")] + clipboard: bool, }, #[command(about = "Display the authenticator code for a given entry")] @@ -322,6 +324,7 @@ fn main() { field, full, raw, + clipboard } => commands::get( name, user.as_deref(), @@ -329,6 +332,7 @@ fn main() { field.as_deref(), *full, *raw, + *clipboard, ), Opt::Code { name, user, folder } => { commands::code(name, user.as_deref(), folder.as_deref()) |