Skip to content

Commit 5f41de0

Browse files
committed
feat: aliases for same-password and password
Adds aliases: - `-s` for `--same-password` - `-p` for `--password`
1 parent a590007 commit 5f41de0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ struct Args {
4747
password_b: Option<String>,
4848

4949
/// Sets the password for both files (if it's the same for both files)
50-
#[clap(name = "passwords", long)]
50+
#[clap(name = "passwords", long, short)]
5151
passwords: Option<String>,
5252

5353
/// Asks for password only once, and tries to open both files with it
54-
#[clap(name = "same-password", long)]
54+
#[clap(name = "same-password", long, short)]
5555
same_password: bool,
5656

5757
/// Sets no password for the first file (and will not ask for it)

0 commit comments

Comments
 (0)