mirror of
https://github.com/facebook/zstd.git
synced 2025-08-01 09:47:01 +03:00
changed -B# command into --jobsize
to reduce confusion with the term "block". -B# remains supported for existing scripts, but it's no longer documented, so it's effectively a hidden shortcut.
This commit is contained in:
@ -1084,6 +1084,7 @@ int main(int argCount, const char* argv[])
|
||||
if (longCommandWArg(&argument, "--memlimit-decompress")) { NEXT_UINT32(memLimit); continue; }
|
||||
if (longCommandWArg(&argument, "--block-size")) { NEXT_TSIZE(chunkSize); continue; } /* hidden command, prefer --split below */
|
||||
if (longCommandWArg(&argument, "--split")) { NEXT_TSIZE(chunkSize); continue; }
|
||||
if (longCommandWArg(&argument, "--jobsize")) { NEXT_TSIZE(chunkSize); continue; } /* note: overloaded variable */
|
||||
if (longCommandWArg(&argument, "--maxdict")) { NEXT_UINT32(maxDictSize); continue; }
|
||||
if (longCommandWArg(&argument, "--dictID")) { NEXT_UINT32(dictID); continue; }
|
||||
if (longCommandWArg(&argument, "--zstd=")) { if (!parseCompressionParameters(argument, &compressionParams)) { badUsage(programName, originalArgument); CLEAN_RETURN(1); } ; cType = FIO_zstdCompression; continue; }
|
||||
@ -1266,7 +1267,7 @@ int main(int argCount, const char* argv[])
|
||||
bench_nbSeconds = readU32FromChar(&argument);
|
||||
break;
|
||||
|
||||
/* cut input into independent chunks (benchmark only) */
|
||||
/* hidden shortcut for --split=# and --jobsize=# */
|
||||
case 'B':
|
||||
argument++;
|
||||
chunkSize = readU32FromChar(&argument);
|
||||
|
Reference in New Issue
Block a user