mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +00:00
fix: change threads short flag to -c in cli args to avoid conflict with tree
This commit is contained in:
parent
e1d7f1424a
commit
28d0933d6c
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user