mirror of
https://github.com/facebook/zstd.git
synced 2025-08-07 06:23:00 +03:00
update --rm
cmd help info
Starting from cee6bec9fa
, --rm is ignored when the output is `stdout`.
This commit is contained in:
@@ -153,7 +153,7 @@ Usage: zstd [OPTIONS...] [INPUT... | -] [-o OUTPUT]
|
|||||||
Options:
|
Options:
|
||||||
-o OUTPUT Write output to a single file, OUTPUT.
|
-o OUTPUT Write output to a single file, OUTPUT.
|
||||||
-k, --keep Preserve INPUT file(s). [Default]
|
-k, --keep Preserve INPUT file(s). [Default]
|
||||||
--rm Remove INPUT file(s) after successful (de)compression.
|
--rm Remove INPUT file(s) after successful (de)compression to file.
|
||||||
|
|
||||||
-# Desired compression level, where `#` is a number between 1 and 19;
|
-# Desired compression level, where `#` is a number between 1 and 19;
|
||||||
lower numbers provide faster compression, higher numbers yield
|
lower numbers provide faster compression, higher numbers yield
|
||||||
|
@@ -147,7 +147,7 @@ static void usage(FILE* f, const char* programName)
|
|||||||
DISPLAY_F(f, "Options:\n");
|
DISPLAY_F(f, "Options:\n");
|
||||||
DISPLAY_F(f, " -o OUTPUT Write output to a single file, OUTPUT.\n");
|
DISPLAY_F(f, " -o OUTPUT Write output to a single file, OUTPUT.\n");
|
||||||
DISPLAY_F(f, " -k, --keep Preserve INPUT file(s). [Default] \n");
|
DISPLAY_F(f, " -k, --keep Preserve INPUT file(s). [Default] \n");
|
||||||
DISPLAY_F(f, " --rm Remove INPUT file(s) after successful (de)compression.\n");
|
DISPLAY_F(f, " --rm Remove INPUT file(s) after successful (de)compression to file.\n");
|
||||||
#ifdef ZSTD_GZCOMPRESS
|
#ifdef ZSTD_GZCOMPRESS
|
||||||
if (exeNameMatch(programName, ZSTD_GZ)) { /* behave like gzip */
|
if (exeNameMatch(programName, ZSTD_GZ)) { /* behave like gzip */
|
||||||
DISPLAY_F(f, " -n, --no-name Do not store original filename when compressing.\n\n");
|
DISPLAY_F(f, " -n, --no-name Do not store original filename when compressing.\n\n");
|
||||||
|
@@ -6,7 +6,7 @@ Usage: zstd *OPTIONS...* *INPUT... | -* *-o OUTPUT*
|
|||||||
Options:
|
Options:
|
||||||
-o OUTPUT Write output to a single file, OUTPUT.
|
-o OUTPUT Write output to a single file, OUTPUT.
|
||||||
-k, --keep Preserve INPUT file(s). *Default*
|
-k, --keep Preserve INPUT file(s). *Default*
|
||||||
--rm Remove INPUT file(s) after successful (de)compression.
|
--rm Remove INPUT file(s) after successful (de)compression to file.
|
||||||
|
|
||||||
-# Desired compression level, where `#` is a number between 1 and 19;
|
-# Desired compression level, where `#` is a number between 1 and 19;
|
||||||
lower numbers provide faster compression, higher numbers yield
|
lower numbers provide faster compression, higher numbers yield
|
||||||
|
Reference in New Issue
Block a user