Skip to content

Commit bbce746

Browse files
authored
Add aliases for password flag (#847)
1 parent 7a6c4ec commit bbce746

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Categories Used:
3131
### Improvements
3232

3333
- Give better error messages when archive extensions are invalid [\#817](https://github.com/ouch-org/ouch/pull/817) ([marcospb19](https://github.com/marcospb19))
34+
- Add aliases for `--password` flag (`--pass` and `--pw`) [\#847](https://github.com/ouch-org/ouch/pull/847) ([marcospb19](https://github.com/marcospb19))
3435

3536
### Bug Fixes
3637

src/cli/args.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ pub struct CliArgs {
3030
pub hidden: bool,
3131

3232
/// Silence output
33-
#[arg(short = 'q', long, global = true)]
33+
#[arg(short, long, global = true)]
3434
pub quiet: bool,
3535

3636
/// Ignore files matched by git's ignore files
37-
#[arg(short = 'g', long, global = true)]
37+
#[arg(short, long, global = true)]
3838
pub gitignore: bool,
3939

4040
/// Specify the format of the archive
4141
#[arg(short, long, global = true)]
4242
pub format: Option<OsString>,
4343

4444
/// Decompress or list with password
45-
#[arg(short = 'p', long = "password", global = true)]
45+
#[arg(short, long = "password", aliases = ["pass", "pw"], global = true)]
4646
pub password: Option<OsString>,
4747

4848
/// Concurrent working threads

0 commit comments

Comments
 (0)