Implement more gzip compatibility (#3037)

-n --no-name is the current behavior already, so we can implement
this as a noop.

--best is an alias for -9 in gzip

add basic cli tests.
This commit is contained in:
Dirk Müller
2022-02-09 23:09:18 +01:00
parent caf2fa170b
commit e653e97f77
4 changed files with 69 additions and 10 deletions
+12
View File
@@ -280,6 +280,18 @@ the last one takes effect.
* `--`:
All arguments after `--` are treated as files
### gzip Operation modifiers
When invoked via a `gzip` symlink, `zstd` will support further
options that intend to mimic the `gzip` behavior:
* `-n`, `--no-name`:
do not store the original filename and timestamps when compressing
a file. This is the default behavior and hence a no-op.
* `--best`:
alias to the option `-9`.
### Restricted usage of Environment Variables
Using environment variables to set parameters has security implications.