Add aliases for password flag (#847)

This commit is contained in:
João Marcos 2025-07-15 17:01:59 -03:00 committed by GitHub
parent 7a6c4ecfb1
commit bbce746666
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -31,6 +31,7 @@ Categories Used:
### Improvements ### Improvements
- Give better error messages when archive extensions are invalid [\#817](https://github.com/ouch-org/ouch/pull/817) ([marcospb19](https://github.com/marcospb19)) - Give better error messages when archive extensions are invalid [\#817](https://github.com/ouch-org/ouch/pull/817) ([marcospb19](https://github.com/marcospb19))
- Add aliases for `--password` flag (`--pass` and `--pw`) [\#847](https://github.com/ouch-org/ouch/pull/847) ([marcospb19](https://github.com/marcospb19))
### Bug Fixes ### Bug Fixes

View File

@ -30,11 +30,11 @@ pub struct CliArgs {
pub hidden: bool, pub hidden: bool,
/// Silence output /// Silence output
#[arg(short = 'q', long, global = true)] #[arg(short, long, global = true)]
pub quiet: bool, pub quiet: bool,
/// Ignore files matched by git's ignore files /// Ignore files matched by git's ignore files
#[arg(short = 'g', long, global = true)] #[arg(short, long, global = true)]
pub gitignore: bool, pub gitignore: bool,
/// Specify the format of the archive /// Specify the format of the archive
@ -42,7 +42,7 @@ pub struct CliArgs {
pub format: Option<OsString>, pub format: Option<OsString>,
/// Decompress or list with password /// Decompress or list with password
#[arg(short = 'p', long = "password", global = true)] #[arg(short, long = "password", aliases = ["pass", "pw"], global = true)]
pub password: Option<OsString>, pub password: Option<OsString>,
/// Concurrent working threads /// Concurrent working threads