mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-19 16:10:53 +00:00
Add aliases for password flag
This commit is contained in:
parent
cffa37741a
commit
c5bf971138
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user