aboutsummaryrefslogtreecommitdiff
path: root/src/rpcclient.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-11-27 15:41:12 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2013-12-03 09:07:13 +0100
commit0b47fe6bdc14e942bc886a08a55cc183c6820636 (patch)
tree36e789aef8cf8df1d15752a207bfd2461a2232bf /src/rpcclient.cpp
parente7e8a7537a8106bace2886fd7e6480f561986998 (diff)
bitcoin-cli: remove unneeded dependencies (only code movement)
Remove unnecessary dependencies for bitcoin-cli (leveldb, berkelydb, wallet, RPC server) Build system changes: - split libbitcoin.a into libbitcoin_common.a, libbitcoin_server.a and libbitcoin_cli.a Code changes (movement only): - split up HelpMessage into HelpMessage in init.cpp and HelpMessageCli in rpcclient.cpp - move uiInterface from init.cpp to util.cpp
Diffstat (limited to 'src/rpcclient.cpp')
-rw-r--r--src/rpcclient.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp
index 2667a5d5a5..1957cfa432 100644
--- a/src/rpcclient.cpp
+++ b/src/rpcclient.cpp
@@ -244,3 +244,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;
+}
+