diff options
| author | Matt Corallo <[email protected]> | 2016-11-29 17:51:30 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-12-23 21:30:16 -0500 |
| commit | 0cf86a6678413aa03e765a7133f048df4001ff4c (patch) | |
| tree | 10846a31ea17a64d66a77f15acc182aeeea43861 /src/bitcoin-cli.cpp | |
| parent | Fix non-const mapMultiArgs[] access after init. (diff) | |
| download | discoin-0cf86a6678413aa03e765a7133f048df4001ff4c.tar.xz discoin-0cf86a6678413aa03e765a7133f048df4001ff4c.zip | |
Introduce (and use) an IsArgSet accessor method
Diffstat (limited to 'src/bitcoin-cli.cpp')
| -rw-r--r-- | src/bitcoin-cli.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index cee9ae31b..a4360dcd1 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -76,9 +76,9 @@ static int AppInitRPC(int argc, char* argv[]) // Parameters // ParseParameters(argc, argv); - if (argc<2 || mapArgs.count("-?") || mapArgs.count("-h") || mapArgs.count("-help") || mapArgs.count("-version")) { + if (argc<2 || IsArgSet("-?") || IsArgSet("-h") || IsArgSet("-help") || IsArgSet("-version")) { std::string strUsage = strprintf(_("%s RPC client version"), _(PACKAGE_NAME)) + " " + FormatFullVersion() + "\n"; - if (!mapArgs.count("-version")) { + if (!IsArgSet("-version")) { strUsage += "\n" + _("Usage:") + "\n" + " bitcoin-cli [options] <command> [params] " + strprintf(_("Send command to %s"), _(PACKAGE_NAME)) + "\n" + " bitcoin-cli [options] help " + _("List commands") + "\n" + |