summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorWHR <msl0000023508@gmail.com>2019-07-23 05:37:11 (GMT)
committerWHR <msl0000023508@gmail.com>2019-07-23 05:37:11 (GMT)
commiteee8cc79e79230a884884beb885ea92fe1b70928 (patch)
tree1ec1bda3096e479db60a89b1a6d40718dac2eb50 /programs/lz4cli.c
parentfb8a159436d6b1a346e2fd40232447f10a9408d6 (diff)
downloadlz4-eee8cc79e79230a884884beb885ea92fe1b70928.zip
lz4-eee8cc79e79230a884884beb885ea92fe1b70928.tar.gz
lz4-eee8cc79e79230a884884beb885ea92fe1b70928.tar.bz2
lz4cli: add option '--best' as an alias of '-12'
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 3b5d61e..5da7654 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -146,6 +146,7 @@ static int usage_advanced(const char* exeName)
DISPLAY( "--[no-]sparse : sparse mode (default:enabled on file, disabled on stdout)\n");
DISPLAY( "--favor-decSpeed: compressed files decompress faster, but are less compressed \n");
DISPLAY( "--fast[=#]: switch to ultra fast compression level (default: %i)\n", 1);
+ DISPLAY( "--best : same as -%d\n", LZ4HC_CLEVEL_MAX);
DISPLAY( "Benchmark arguments : \n");
DISPLAY( " -b# : benchmark file(s), using # compression level (default : 1) \n");
DISPLAY( " -e# : test all compression levels from -bX to # (default : 1)\n");
@@ -414,6 +415,9 @@ int main(int argc, const char** argv)
}
continue;
}
+
+ /* For gzip(1) compatibility */
+ if (!strcmp(argument, "--best")) { cLevel=LZ4HC_CLEVEL_MAX; continue; }
}
while (argument[1]!=0) {