diff options
| author | Gavin Andresen <[email protected]> | 2013-12-03 03:47:44 -0800 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-12-03 03:47:44 -0800 |
| commit | cf74e8cb5eed90cbb14ed40d834c30ef9d37c443 (patch) | |
| tree | 115a15599169cb7fbcaa0a76c38c3c444dbaf068 /src/rpcclient.cpp | |
| parent | Merge pull request #3345 from Michagogo/gitian-descriptor-deps-input-typo (diff) | |
| parent | bitcoin-cli: remove unneeded dependencies (only code movement) (diff) | |
| download | discoin-cf74e8cb5eed90cbb14ed40d834c30ef9d37c443.tar.xz discoin-cf74e8cb5eed90cbb14ed40d834c30ef9d37c443.zip | |
Merge pull request #3320 from laanwj/2013_11_cli_split
bitcoin-cli: remove unneeded dependencies (only minor code movement)
Diffstat (limited to 'src/rpcclient.cpp')
| -rw-r--r-- | src/rpcclient.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp index f571ca52d..a3168917f 100644 --- a/src/rpcclient.cpp +++ b/src/rpcclient.cpp @@ -245,3 +245,35 @@ int CommandLineRPC(int argc, char *argv[]) } return nRet; } + +std::string HelpMessageCli(bool mainProgram) +{ + string strUsage; + if(mainProgram) + { + strUsage += _("Options:") + "\n"; + strUsage += " -? " + _("This help message") + "\n"; + strUsage += " -conf=<file> " + _("Specify configuration file (default: bitcoin.conf)") + "\n"; + strUsage += " -datadir=<dir> " + _("Specify data directory") + "\n"; + strUsage += " -testnet " + _("Use the test network") + "\n"; + strUsage += " -regtest " + _("Enter regression test mode, which uses a special chain in which blocks can be " + "solved instantly. This is intended for regression testing tools and app development.") + "\n"; + } else { + strUsage += _("RPC client options:") + "\n"; + } + + strUsage += " -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n"; + strUsage += " -rpcport=<port> " + _("Connect to JSON-RPC on <port> (default: 8332 or testnet: 18332)") + "\n"; + strUsage += " -rpcwait " + _("Wait for RPC server to start") + "\n"; + strUsage += " -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n"; + strUsage += " -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n"; + + if(mainProgram) + { + strUsage += "\n" + _("SSL options: (see the Bitcoin Wiki for SSL setup instructions)") + "\n"; + strUsage += " -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n"; + } + + return strUsage; +} + |