aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2013-11-13 08:23:38 -0800
committerWladimir J. van der Laan <[email protected]>2013-11-13 08:23:38 -0800
commit194aa6cfdfae471bf074962e65ccb79324862b0b (patch)
tree4b02c150d44351ceac018a0557667f242ea68f22 /src/bitcoinrpc.cpp
parentMerge pull request #3240 from laanwj/2013_11_rebase_no_wallet (diff)
parentIssue #1865 - Clean up RPC help messages (diff)
downloaddiscoin-194aa6cfdfae471bf074962e65ccb79324862b0b.tar.xz
discoin-194aa6cfdfae471bf074962e65ccb79324862b0b.zip
Merge pull request #3246 from laanwj/2013_11_rpc_help
Clean up RPC help messages (rebased)
Diffstat (limited to 'src/bitcoinrpc.cpp')
-rw-r--r--src/bitcoinrpc.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp
index 6ecb70309..c715f13fd 100644
--- a/src/bitcoinrpc.cpp
+++ b/src/bitcoinrpc.cpp
@@ -189,8 +189,13 @@ Value help(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
- "help [command]\n"
- "List commands, or get help for a command.");
+ "help ( \"command\" )\n"
+ "\nList all commands, or get help for a specified command.\n"
+ "\nArguments:\n"
+ "1. \"command\" (string, optional) The command to get help on\n"
+ "\nResult:\n"
+ "\"text\" (string) The help text\n"
+ );
string strCommand;
if (params.size() > 0)
@@ -206,7 +211,7 @@ Value stop(const Array& params, bool fHelp)
if (fHelp || params.size() > 1)
throw runtime_error(
"stop\n"
- "Stop Bitcoin server.");
+ "\nStop Bitcoin server.");
// Shutdown will take long enough that the response should get back
StartShutdown();
return "Bitcoin server stopping";