diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-11-23 11:21:38 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-11-27 14:18:19 -0500 |
commit | 1db0096f61680d2b2a9cfe454154de3ad121a9d3 (patch) | |
tree | 0c6e79b59ed1822cf86ac97866d0c67a2aea29b8 /src/rpc/server.cpp | |
parent | 8c119b27551f56db72bfbdb9ed632b4deb19e161 (diff) |
rpc: Pass argument descriptions to RPCHelpMan
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r-- | src/rpc/server.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index c565094a10..97745c62d6 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -142,10 +142,6 @@ std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey) return ParseHexV(find_value(o, strKey), strKey); } -/** - * Note: This interface may still be subject to change. - */ - std::string CRPCTable::help(const std::string& strCommand, const JSONRPCRequest& helpreq) const { std::string strRet; @@ -207,11 +203,9 @@ UniValue help(const JSONRPCRequest& jsonRequest) RPCHelpMan{"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" "\nResult:\n" "\"text\" (string) The help text\n" ); @@ -256,9 +250,6 @@ static UniValue uptime(const JSONRPCRequest& jsonRequest) } // clang-format off -/** - * Call Table - */ static const CRPCCommand vRPCCommands[] = { // category name actor (function) argNames // --------------------- ------------------------ ----------------------- ---------- |