The question mark is interpreted as a wildcard for any single character in Zsh (see https://www.techrepublic.com/article/globbing-wildcard-characters-with-zsh), so bench_bitcoin -?
will not show the help message on systems using Zsh, such as macOS.
Since -h
provides equivalent help functionality (as defined in https://github.com/bitcoin/bitcoin/blob/master/src/common/args.cpp#L684-L693), the benchmarking.md
documentation has been updated to ensure compatibility with macOS.
-?
% cmake -B build -DBUILD_BENCH=ON && cmake –build build && build/src/bench/bench_bitcoin -? zsh: no matches found: -?
-h
% cmake -B build -DBUILD_BENCH=ON && cmake –build build && build/src/bench/bench_bitcoin -h Usage: bench_bitcoin [options] Options: …
Based on the comments the args help default was also changed to -help
, mentioning -h
and -?
(instead of -?
being the default)