diff options
| author | Ben Woosley <[email protected]> | 2018-03-30 13:47:36 -0700 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2018-04-02 15:42:06 -0700 |
| commit | b386970d0750e368d6adc5d0c010ead329b5c7c1 (patch) | |
| tree | ba225416f9a72ba87f9dd6f8fda1dc6ff975ce21 /src/bitcoin-tx.cpp | |
| parent | Merge #12861: [tests] Stop feature_block.py from blowing up memory. (diff) | |
| download | discoin-b386970d0750e368d6adc5d0c010ead329b5c7c1.tar.xz discoin-b386970d0750e368d6adc5d0c010ead329b5c7c1.zip | |
[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/bitcoin-tx.cpp')
| -rw-r--r-- | src/bitcoin-tx.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 8218e883a..76a6f9489 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -51,8 +51,7 @@ static int AppInitRawTx(int argc, char* argv[]) fCreateBlank = gArgs.GetBoolArg("-create", false); - if (argc<2 || gArgs.IsArgSet("-?") || gArgs.IsArgSet("-h") || gArgs.IsArgSet("-help")) - { + if (argc < 2 || HelpRequested(gArgs)) { // First part of help message is specific to this utility std::string strUsage = strprintf(_("%s bitcoin-tx utility version"), _(PACKAGE_NAME)) + " " + FormatFullVersion() + "\n\n" + _("Usage:") + "\n" + |