From: Yann Collet Date: Tue, 2 Sep 2025 22:46:51 +0000 (-0700) Subject: fixed -T# documentation in zstd -H X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c5d45fc11529e72c78a8108bddeb794cca905b7;p=thirdparty%2Fzstd.git fixed -T# documentation in zstd -H provide the local value for default nbThreads which is dynamic and depends on local nb of cores. --- diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 124ea47aa..142fc4c53 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -233,7 +233,7 @@ static void usageAdvanced(const char* programName) DISPLAYOUT(" --patch-from=REF Use REF as the reference point for Zstandard's diff engine. \n"); DISPLAYOUT(" --patch-apply Equivalent for `-d --patch-from` \n\n"); # ifdef ZSTD_MULTITHREAD - DISPLAYOUT(" -T# Spawn # compression threads. [Default: 1; pass 0 for core count.]\n"); + DISPLAYOUT(" -T# Spawn # compression threads. [Default: %i; pass 0 for core count.]\n", ZSTDCLI_NBTHREADS_DEFAULT); DISPLAYOUT(" --single-thread Share a single thread for I/O and compression (slightly different than `-T1`).\n"); DISPLAYOUT(" --auto-threads={physical|logical}\n"); DISPLAYOUT(" Use physical/logical cores when using `-T0`. [Default: Physical]\n\n");