update -H documentation regarding compression levels

This commit is contained in:
Yann Collet 2024-09-04 11:03:28 -07:00
parent e0781fbe4b
commit 217bdb2f2f
2 changed files with 6 additions and 3 deletions

View File

@ -208,8 +208,11 @@ static int usage_longhelp(const char* exeName)
DISPLAY( "\n");
DISPLAY( "Compression levels : \n");
DISPLAY( "---------------------\n");
DISPLAY( "-0 ... -2 => Fast compression, all identical\n");
DISPLAY( "-3 ... -%d => High compression; higher number == more compression but slower\n", LZ4HC_CLEVEL_MAX);
DISPLAY( "-0 => Default level, identical to -%u \n", LZ4_CLEVEL_DEFAULT);
DISPLAY( "-1 => Fast compression \n");
DISPLAY( "-2 .. -%d => High compression; higher number == more compression but slower\n", LZ4HC_CLEVEL_MAX);
DISPLAY( "--best => Highest available compression level (-%d) \n", LZ4HC_CLEVEL_MAX);
DISPLAY( "--fast=# => Faster compression; higher number == faster but compress less\n");
DISPLAY( "\n");
DISPLAY( "stdin, stdout and the console : \n");
DISPLAY( "--------------------------------\n");

View File

@ -28,7 +28,7 @@
/* Default compression level.
* Can be overridden by environment variable LZ4_CLEVEL.
* Can be overridden at runtime using -# command */
* Is overridden at runtime by command -# */
#ifndef LZ4_CLEVEL_DEFAULT
# define LZ4_CLEVEL_DEFAULT 1
#endif