RPC docs helper updates (#2949)

* RPC - Update gobject description to match other multi-command RPCs

* RPC - Update masternodelist to avoid returning dupe RPC name from help

* RPC - Make spacing consistent in gobject/masternode help
This commit is contained in:
thephez 2019-05-30 04:01:16 -04:00 committed by UdjinM6
parent 09d66c7764
commit 809aae73a1
2 changed files with 5 additions and 5 deletions

View File

@ -871,8 +871,8 @@ UniValue gobject_getcurrentvotes(const JSONRPCRequest& request)
[[ noreturn ]] void gobject_help()
{
throw std::runtime_error(
"gobject \"command\"...\n"
"Manage governance objects\n"
"gobject \"command\" ...\n"
"Set of commands to manage governance objects.\n"
"\nAvailable commands:\n"
" check - Validate governance object data (proposal only)\n"
#ifdef ENABLE_WALLET

View File

@ -125,8 +125,8 @@ UniValue getpoolinfo(const JSONRPCRequest& request)
void masternode_list_help()
{
throw std::runtime_error(
"masternode list ( \"mode\" \"filter\" )\n"
"Get a list of masternodes in different modes. This call is identical to masternodelist call.\n"
"masternodelist ( \"mode\" \"filter\" )\n"
"Get a list of masternodes in different modes. This call is identical to 'masternode list' call.\n"
"\nArguments:\n"
"1. \"mode\" (string, optional/required to use filter, defaults = json) The mode to run list in\n"
"2. \"filter\" (string, optional) Filter results. Partial match by outpoint by default in all modes,\n"
@ -420,7 +420,7 @@ UniValue masternode_winners(const JSONRPCRequest& request)
[[ noreturn ]] void masternode_help()
{
throw std::runtime_error(
"masternode \"command\"...\n"
"masternode \"command\" ...\n"
"Set of commands to execute masternode related actions\n"
"\nArguments:\n"
"1. \"command\" (string or set of strings, required) The command to execute\n"