]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed -T# documentation in zstd -H
authorYann Collet <cyan@fb.com>
Tue, 2 Sep 2025 22:46:51 +0000 (15:46 -0700)
committerYann Collet <cyan@fb.com>
Tue, 2 Sep 2025 22:46:51 +0000 (15:46 -0700)
provide the local value for default nbThreads
which is dynamic and depends on local nb of cores.

programs/zstdcli.c

index 124ea47aabf51167aae774a9cf06f323037e4eac..142fc4c53c5413f0d98019169f34ef697fd86bca 100644 (file)
@@ -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");