fix: change threads short flag to -c in cli args to avoid conflict with tree

This commit is contained in:
ttyS3 2024-12-03 17:12:31 +00:00 committed by João Marcos
parent e1d7f1424a
commit 28d0933d6c
3 changed files with 7 additions and 1 deletions

View File

@ -46,7 +46,7 @@ pub struct CliArgs {
pub password: Option<OsString>, pub password: Option<OsString>,
/// cocurrent working threads /// cocurrent working threads
#[arg(short = 't', long, global = true)] #[arg(short = 'c', long, global = true)]
pub threads: Option<usize>, pub threads: Option<usize>,
// Ouch and claps subcommands // Ouch and claps subcommands

View File

@ -1,6 +1,7 @@
--- ---
source: tests/ui.rs source: tests/ui.rs
expression: "output_to_string(ouch!(\"-h\"))" expression: "output_to_string(ouch!(\"-h\"))"
snapshot_kind: text
--- ---
A command-line utility for easily compressing and decompressing files and directories. A command-line utility for easily compressing and decompressing files and directories.
@ -21,5 +22,6 @@ Options:
-g, --gitignore Ignores files matched by git's ignore files -g, --gitignore Ignores files matched by git's ignore files
-f, --format <FORMAT> Specify the format of the archive -f, --format <FORMAT> Specify the format of the archive
-p, --password <PASSWORD> decompress or list with password -p, --password <PASSWORD> decompress or list with password
-c, --threads <THREADS> cocurrent working threads
-h, --help Print help (see more with '--help') -h, --help Print help (see more with '--help')
-V, --version Print version -V, --version Print version

View File

@ -1,6 +1,7 @@
--- ---
source: tests/ui.rs source: tests/ui.rs
expression: "output_to_string(ouch!(\"--help\"))" expression: "output_to_string(ouch!(\"--help\"))"
snapshot_kind: text
--- ---
A command-line utility for easily compressing and decompressing files and directories. A command-line utility for easily compressing and decompressing files and directories.
@ -43,6 +44,9 @@ Options:
-p, --password <PASSWORD> -p, --password <PASSWORD>
decompress or list with password decompress or list with password
-c, --threads <THREADS>
cocurrent working threads
-h, --help -h, --help
Print help (see a summary with '-h') Print help (see a summary with '-h')