diff options
| author | MarcoFalke <[email protected]> | 2018-04-03 11:51:48 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-04-03 11:52:21 -0400 |
| commit | ad960f5771dc251c8e1198dd8a82e18df4562171 (patch) | |
| tree | ba225416f9a72ba87f9dd6f8fda1dc6ff975ce21 /src/bitcoin-cli.cpp | |
| parent | Merge #12861: [tests] Stop feature_block.py from blowing up memory. (diff) | |
| parent | [moveonly] Extract HelpRequested to dry up the help options testing (diff) | |
| download | discoin-ad960f5771dc251c8e1198dd8a82e18df4562171.tar.xz discoin-ad960f5771dc251c8e1198dd8a82e18df4562171.zip | |
Merge #12846: [moveonly] Extract HelpRequested to dry up the help options testing
b386970d07 [moveonly] Extract HelpRequested to dry up the help options testing (Ben Woosley)
Pull request description:
This ensures consistency across interfaces and makes the version handling more clear.
Tree-SHA512: d3f46d34dae6cf98902b0bbb279ada65c3215a25f69e5ff98b88e68f37a6b027ded265d15c12303998e31b390aa30fdb689455c61c983ab4b7527cbce8f4ec61
Diffstat (limited to 'src/bitcoin-cli.cpp')
| -rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 8bdc21099..263520ee4 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -82,7 +82,7 @@ static int AppInitRPC(int argc, char* argv[]) // Parameters // gArgs.ParseParameters(argc, argv); - if (argc<2 || gArgs.IsArgSet("-?") || gArgs.IsArgSet("-h") || gArgs.IsArgSet("-help") || gArgs.IsArgSet("-version")) { + if (argc < 2 || HelpRequested(gArgs) || gArgs.IsArgSet("-version")) { std::string strUsage = strprintf(_("%s RPC client version"), _(PACKAGE_NAME)) + " " + FormatFullVersion() + "\n"; if (!gArgs.IsArgSet("-version")) { strUsage += "\n" + _("Usage:") + "\n" + |