From 5f41de0c58af334c5e5381d8f9e67d4bf57b0798 Mon Sep 17 00:00:00 2001 From: mrghosti3 Date: Mon, 18 Sep 2023 20:29:34 +0300 Subject: [PATCH] feat: aliases for `same-password` and `password` Adds aliases: - `-s` for `--same-password` - `-p` for `--password` --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 44f243b..8414892 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,11 +47,11 @@ struct Args { password_b: Option, /// Sets the password for both files (if it's the same for both files) - #[clap(name = "passwords", long)] + #[clap(name = "passwords", long, short)] passwords: Option, /// Asks for password only once, and tries to open both files with it - #[clap(name = "same-password", long)] + #[clap(name = "same-password", long, short)] same_password: bool, /// Sets no password for the first file (and will not ask for it)