summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-04-26 22:49:32 (GMT)
committerYann Collet <cyan@fb.com>2018-04-26 22:49:32 (GMT)
commit5c7d3812d90aeaf072d14f6b5d935711da6f14c7 (patch)
treeec95ac821c784c774832daf51dcd5869234e208f /programs/lz4cli.c
parent3792d00168edd060c58ceaecffb97d43dab27094 (diff)
downloadlz4-5c7d3812d90aeaf072d14f6b5d935711da6f14c7.zip
lz4-5c7d3812d90aeaf072d14f6b5d935711da6f14c7.tar.gz
lz4-5c7d3812d90aeaf072d14f6b5d935711da6f14c7.tar.bz2
fasterDecSpeed can be triggered from cli with --favor-decSpeed
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 42392eb..ba519b4 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -140,6 +140,7 @@ static int usage_advanced(const char* exeName)
DISPLAY( "--no-frame-crc : disable stream checksum (default:enabled) \n");
DISPLAY( "--content-size : compressed frame includes original size (default:not present)\n");
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( "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");
@@ -355,6 +356,7 @@ int main(int argc, const char** argv)
if (!strcmp(argument, "--no-content-size")) { LZ4IO_setContentSize(0); continue; }
if (!strcmp(argument, "--sparse")) { LZ4IO_setSparseFile(2); continue; }
if (!strcmp(argument, "--no-sparse")) { LZ4IO_setSparseFile(0); continue; }
+ if (!strcmp(argument, "--favor-decSpeed")) { LZ4IO_favorDecSpeed(1); continue; }
if (!strcmp(argument, "--verbose")) { displayLevel++; continue; }
if (!strcmp(argument, "--quiet")) { if (displayLevel) displayLevel--; continue; }
if (!strcmp(argument, "--version")) { DISPLAY(WELCOME_MESSAGE); return 0; }