diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2018-03-30 13:47:36 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2018-04-02 15:42:06 -0700 |
commit | b386970d0750e368d6adc5d0c010ead329b5c7c1 (patch) | |
tree | ba225416f9a72ba87f9dd6f8fda1dc6ff975ce21 /src/bitcoind.cpp | |
parent | c564424d98b1561f16e633528172b3583719e5f3 (diff) |
[moveonly] Extract HelpRequested to dry up the help options testing
This ensures consistency across interfaces and makes the version handling more clear.
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r-- | src/bitcoind.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index df7fad89c2..58518d611f 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -76,8 +76,7 @@ bool AppInit(int argc, char* argv[]) gArgs.ParseParameters(argc, argv); // Process help and version before taking care about datadir - if (gArgs.IsArgSet("-?") || gArgs.IsArgSet("-h") || gArgs.IsArgSet("-help") || gArgs.IsArgSet("-version")) - { + if (HelpRequested(gArgs) || gArgs.IsArgSet("-version")) { std::string strUsage = strprintf(_("%s Daemon"), _(PACKAGE_NAME)) + " " + _("version") + " " + FormatFullVersion() + "\n"; if (gArgs.IsArgSet("-version")) |