Update tests to expect new CLI help output

This commit is contained in:
Jon Palmisciano 2022-12-20 20:11:37 -05:00
parent 9c93dd71cd
commit 125bcde17c
No known key found for this signature in database
GPG Key ID: 4DD9E409A2D8C5DE
3 changed files with 37 additions and 28 deletions

View File

@ -1,25 +1,34 @@
+ zstd -h + zstd -h
Usage: zstd *OPTION*... *FILE*... *-o file* Compress or decompress the INPUT file(s); reads from STDIN if INPUT is `-` or not provided.
Compress or uncompress FILEs (with no FILE or when FILE is `-`, read from standard input).
-o file result stored into `file` (only 1 output file) Usage: zstd *OPTIONS...* *INPUT... | -* *-o OUTPUT*
-1 .. -19 compression level (faster .. better; default: 3)
-d, --decompress decompression Options:
-f, --force disable input and output checks. Allows overwriting existing files, -o OUTPUT Write output to a single file, OUTPUT.
input from console, output to stdout, operating on links, -k, --keep Preserve INPUT file(s). *Default*
block devices, etc. During decompression and when the output --rm Remove INPUT file(s) after successful (de)compression.
destination is stdout, pass-through unrecognized formats as-is.
--rm remove source file(s) after successful de/compression -# Desired compression level, where `#` is a number between 1 and 19;
-k, --keep preserve source file(s) (default) lower numbers provide faster compression, higher numbers yield
-D DICT use DICT as Dictionary for compression or decompression better compression ratios. *Default: 3*
-h display usage and exit
-H,--help display long help and exit -d, --decompress Perform decompression.
-D DICT Use DICT as the dictionary for compression or decompression.
-f, --force Disable input and output checks. Allows overwriting existing files,
receiving input from the console, printing ouput to STDOUT, and
operating on links, block devices, etc. Unrecognized formats will be
passed-through through as-is.
-h Display short usage and exit.
-H, --help Display full help and exit.
-V, --version Display the program version and exit.
+ zstd -H + zstd -H
... ...
Advanced options : Advanced options:
... ...
+ zstd --help + zstd --help
... ...
Advanced options : Advanced options:
... ...

View File

@ -1,2 +1,2 @@
*** zstd command line interface *-bits v1.*.*, by Yann Collet *** *** Zstandard CLI (*-bit) v1.*.*, by Yann Collet ***
*** zstd command line interface *-bits v1.*.*, by Yann Collet *** *** Zstandard CLI (*-bit) v1.*.*, by Yann Collet ***

View File

@ -55,36 +55,36 @@ decompress 2 files
args = --no-progress --fake-stderr-is-console -v args = --no-progress --fake-stderr-is-console -v
compress file to file compress file to file
*zstd* *Zstandard CLI*
hello*hello.zst* hello*hello.zst*
compress pipe to pipe compress pipe to pipe
*zstd* *Zstandard CLI*
*stdin*stdout* *stdin*stdout*
compress pipe to file compress pipe to file
*zstd* *Zstandard CLI*
*stdin*hello.zst* *stdin*hello.zst*
compress file to pipe compress file to pipe
*zstd* *Zstandard CLI*
*hello*stdout* *hello*stdout*
compress 2 files compress 2 files
*zstd* *Zstandard CLI*
*hello*hello.zst* *hello*hello.zst*
*world*world.zst* *world*world.zst*
2 files compressed* 2 files compressed*
decompress file to file decompress file to file
*zstd* *Zstandard CLI*
hello.zst* hello.zst*
decompress pipe to pipe decompress pipe to pipe
*zstd* *Zstandard CLI*
*stdin* *stdin*
decompress pipe to file decompress pipe to file
*zstd* *Zstandard CLI*
*stdin* *stdin*
decompress file to pipe decompress file to pipe
*zstd* *Zstandard CLI*
hello.zst* hello.zst*
decompress 2 files decompress 2 files
*zstd* *Zstandard CLI*
hello.zst* hello.zst*
world.zst* world.zst*
2 files decompressed* 2 files decompressed*