diff options
| author | Ben Woosley <[email protected]> | 2018-07-20 14:14:08 -0400 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2018-07-20 14:24:47 -0400 |
| commit | 5b82aa73523ec98847bbf281147c7d1054f4d207 (patch) | |
| tree | ef3c0af2d9a5459d4ce560a570f21de56374a46f /src/bitcoin-cli.cpp | |
| parent | Merge #13482: Remove boost::program_options dependency (diff) | |
| download | discoin-5b82aa73523ec98847bbf281147c7d1054f4d207.tar.xz discoin-5b82aa73523ec98847bbf281147c7d1054f4d207.zip | |
Fix bitcoin-cli --version
By declaring the relevant option.
Note contrib/devtools/gen-manpages.sh relies on this version information.
Diffstat (limited to 'src/bitcoin-cli.cpp')
| -rw-r--r-- | src/bitcoin-cli.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index b332b5e58..a77e3d49b 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -35,6 +35,7 @@ static void SetupCliArgs() const auto testnetBaseParams = CreateBaseChainParams(CBaseChainParams::TESTNET); gArgs.AddArg("-?", "This help message", false, OptionsCategory::OPTIONS); + gArgs.AddArg("-version", "Print version and exit", false, OptionsCategory::OPTIONS); gArgs.AddArg("-conf=<file>", strprintf("Specify configuration file. Relative paths will be prefixed by datadir location. (default: %s)", BITCOIN_CONF_FILENAME), false, OptionsCategory::OPTIONS); gArgs.AddArg("-datadir=<dir>", "Specify data directory", false, OptionsCategory::OPTIONS); gArgs.AddArg("-getinfo", "Get general information from the remote server. Note that unlike server-side RPC calls, the results of -getinfo is the result of multiple non-atomic requests. Some entries in the result may represent results from different states (e.g. wallet balance may be as of a different block from the chain state reported)", false, OptionsCategory::OPTIONS); |