mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Add separate bitcoin-rpc client
This adds an executable `bitcoin-rpc` that only serves as a Bitcoin RPC client. The commit does not remove RPC functionality from the `bitcoind` yet, this functionality should be deprecated but is left for a later version to give users some time to switch.
This commit is contained in:
@@ -57,12 +57,13 @@ bool AppInit(int argc, char* argv[])
|
||||
// First part of help message is specific to bitcoind / RPC client
|
||||
std::string strUsage = _("Bitcoin version") + " " + FormatFullVersion() + "\n\n" +
|
||||
_("Usage:") + "\n" +
|
||||
" bitcoind [options] " + "\n" +
|
||||
" bitcoind [options] <command> [params] " + _("Send command to -server or bitcoind") + "\n" +
|
||||
" bitcoind [options] " + _("Start Bitcoin server") + "\n" +
|
||||
_("Usage (deprecated, use bitcoin-cli):") + "\n" +
|
||||
" bitcoind [options] <command> [params] " + _("Send command to Bitcoin server") + "\n" +
|
||||
" bitcoind [options] help " + _("List commands") + "\n" +
|
||||
" bitcoind [options] help <command> " + _("Get help for a command") + "\n";
|
||||
|
||||
strUsage += "\n" + HelpMessage();
|
||||
strUsage += "\n" + HelpMessage(HMM_BITCOIND);
|
||||
|
||||
fprintf(stdout, "%s", strUsage.c_str());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user