]> git.ipfire.org Git - thirdparty/zstd.git/commit
[zstdcli] Fix option detection for --auto-threads
authorNick Terrell <terrelln@fb.com>
Fri, 21 Jan 2022 06:45:03 +0000 (22:45 -0800)
committerNick Terrell <terrelln@fb.com>
Thu, 27 Jan 2022 21:56:59 +0000 (13:56 -0800)
commit495dcb839ab6ab40c4156b99be16b010389f2214
treef53bfcd51dd0477436b91a7ee7d306fe31b290b4
parent246982e782849d8646b2d5df6648319935669228
[zstdcli] Fix option detection for --auto-threads

The option `--auto-threads` should still be accepted and parsed, even if
`ZSTD_MULTITHREAD` is not defined. It doesn't mean anything, but we
should still accept the option. Since we want scripts to be able to work
generically.

This bug was caught by tests I added to the new testing framework.
programs/zstdcli.c