mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-10 20:53:50 +01:00
[moveonly] Extract HelpRequested to dry up the help options testing
This ensures consistency across interfaces and makes the version handling more clear.
This commit is contained in:
@@ -27,7 +27,7 @@ main(int argc, char** argv)
|
||||
{
|
||||
gArgs.ParseParameters(argc, argv);
|
||||
|
||||
if (gArgs.IsArgSet("-?") || gArgs.IsArgSet("-h") || gArgs.IsArgSet("-help")) {
|
||||
if (HelpRequested(gArgs)) {
|
||||
std::cout << HelpMessageGroup(_("Options:"))
|
||||
<< HelpMessageOpt("-?", _("Print this help message and exit"))
|
||||
<< HelpMessageOpt("-list", _("List benchmarks without executing them. Can be combined with -scaling and -filter"))
|
||||
|
||||
Reference in New Issue
Block a user