From ff1ecb67f16638946fe54618170aeb3faeca88e6 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sat, 28 Nov 2020 22:03:48 +0300 Subject: [PATCH] rpc: Fix "help" rpc (#3835) Fix "subcommand" param name and description, add "subcommand" to named args list --- src/rpc/server.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 25cab87f52..e907165ffc 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -273,11 +273,11 @@ UniValue help(const JSONRPCRequest& jsonRequest) { if (jsonRequest.fHelp || jsonRequest.params.size() > 2) throw std::runtime_error( - "help ( \"command\" ) (\"subCommand\")\n" + "help ( \"command\" \"subcommand\" )\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" - "2. \"subCommand\" (string, optional) The subcommand to get help on. Please not that not all subcommands support this at the moment\n" + "2. \"subcommand\" (string, optional) The subcommand to get help on. Please note that not all subcommands support this at the moment\n" "\nResult:\n" "\"text\" (string) The help text\n" ); @@ -334,7 +334,7 @@ static const CRPCCommand vRPCCommands[] = { // category name actor (function) argNames // --------------------- ------------------------ ----------------------- ---------- /* Overall control/query calls */ - { "control", "help", &help, {"command"} }, + { "control", "help", &help, {"command","subcommand"} }, { "control", "stop", &stop, {"wait"} }, { "control", "uptime", &uptime, {} }, };