diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -222,9 +222,6 @@ return ParseHexV(find_value(o, strKey), strKey); } -/** - * Note: This interface may still be subject to change. - */ std::string CRPCTable::help(Config &config, const std::string &strCommand, const JSONRPCRequest &helpreq) const { std::string strRet; @@ -291,11 +288,10 @@ "help", "\nList all commands, or get help for a specified command.\n", { - {"command", RPCArg::Type::STR, true}, + {"command", RPCArg::Type::STR, /* opt */ true, + /* default_val */ "", "The command to get help on"}, }} - .ToString() + - "\nArguments:\n" - "1. \"command\" (string, optional) The command to get help on\n" + .ToStringWithArgs() + "\nResult:\n" "\"text\" (string) The help text\n"); } @@ -369,9 +365,6 @@ return result; } -/** - * Call Table - */ // clang-format off static const ContextFreeRPCCommand vRPCCommands[] = { // category name actor (function) argNames