1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

cli : add support for --threads=# command

updated documentation
add relevant test case
This commit is contained in:
Yann Collet
2017-04-21 11:38:13 -07:00
parent d0b1846cf4
commit 230d7acc7d
4 changed files with 36 additions and 30 deletions

View File

@ -420,6 +420,7 @@ int main(int argCount, const char* argv[])
continue;
}
#endif
if (longCommandWArg(&argument, "--threads=")) { nbThreads = readU32FromChar(&argument); continue; }
if (longCommandWArg(&argument, "--memlimit=")) { memLimit = readU32FromChar(&argument); continue; }
if (longCommandWArg(&argument, "--memory=")) { memLimit = readU32FromChar(&argument); continue; }
if (longCommandWArg(&argument, "--memlimit-decompress=")) { memLimit = readU32FromChar(&argument); continue; }