Better --block-size help

This commit is contained in:
Matéo Duparc 2021-07-08 18:16:50 +02:00
parent 663933e32c
commit c15985e928
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E
2 changed files with 4 additions and 4 deletions

View File

@ -74,11 +74,11 @@ FLAGS:
OPTIONS: OPTIONS:
-p, --password <password> Password used to derive encryption keys -p, --password <password> Password used to derive encryption keys
-b, --block-size <blocksize> Size of file chunk (in bytes) [default: 65536] -i, --iterations <iterations> Argon2 time cost [default: 10]
-c, --cipher <cipher> Encryption cipher to use [possible values: aes, xchacha20]
-m, --memory-cost <memory cost> Argon2 memory cost (in kilobytes) [default: 4096] -m, --memory-cost <memory cost> Argon2 memory cost (in kilobytes) [default: 4096]
-t, --threads <threads> Argon2 parallelism (between 1 and 255) [default: 4] -t, --threads <threads> Argon2 parallelism (between 1 and 255) [default: 4]
-i, --iterations <iterations> Argon2 time cost [default: 10] -b, --block-size <blocksize> Size of the I/O buffer (in bytes) [default: 65536]
-c, --cipher <cipher> Encryption cipher to use [possible values: aes, xchacha20]
ARGS: ARGS:
<INPUT> <PATH> | "-" or empty for stdin <INPUT> <PATH> | "-" or empty for stdin

View File

@ -67,7 +67,7 @@ pub fn parse() -> Option<CliArgs> {
Arg::with_name("blocksize") Arg::with_name("blocksize")
.short("b") .short("b")
.long("block-size") .long("block-size")
.help("Size of file chunk (in bytes)") .help("Size of the I/O buffer (in bytes)")
.default_value("65536") .default_value("65536")
) )
.arg( .arg(