aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-03-30 13:47:36 -0700
committerBen Woosley <ben.woosley@gmail.com>2018-04-02 15:42:06 -0700
commitb386970d0750e368d6adc5d0c010ead329b5c7c1 (patch)
treeba225416f9a72ba87f9dd6f8fda1dc6ff975ce21 /src/qt
parentc564424d98b1561f16e633528172b3583719e5f3 (diff)
downloadbitcoin-b386970d0750e368d6adc5d0c010ead329b5c7c1.tar.xz
[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/qt')
-rw-r--r--src/qt/bitcoin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index f853c04617..140e56123f 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -613,8 +613,7 @@ int main(int argc, char *argv[])
// Show help message immediately after parsing command-line options (for "-lang") and setting locale,
// but before showing splash screen.
- if (gArgs.IsArgSet("-?") || gArgs.IsArgSet("-h") || gArgs.IsArgSet("-help") || gArgs.IsArgSet("-version"))
- {
+ if (HelpRequested(gArgs) || gArgs.IsArgSet("-version")) {
HelpMessageDialog help(nullptr, gArgs.IsArgSet("-version"));
help.showOrPrint();
return EXIT_SUCCESS;