diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-12-05 11:02:57 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-12-05 11:03:49 -0500 |
commit | e2c473ff75f9ec272ab23e0ee30728b72aecd8f2 (patch) | |
tree | 1dd33dbad007417f2563664391270b0cff31a357 /src/rpc/server.cpp | |
parent | 86ff0413bb8f8173d3b3a1987875ff40b1094926 (diff) | |
parent | fabca42c68ee4cdff08d30e91412ccf1de6d7b41 (diff) |
Merge #14796: rpc: Pass argument descriptions to RPCHelpMan
fabca42c68 RPCHelpMan: Add space after colons in extended description (MarcoFalke)
fafd040f73 rpc: Add description to fundrawtransaction vout_index (MarcoFalke)
1db0096f61 rpc: Pass argument descriptions to RPCHelpMan (MarcoFalke)
Pull request description:
This will normalize the type names and formatting for the rpc arguments
Tree-SHA512: 6ab344882f0fed36046ab4636cb2fa5d2479c6aae22666ca9a0d067edbb9eff8de98010ad97c8ce40ab532d15d1ae67120a561b0bf3da837090d7de427679f4f
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 // --------------------- ------------------------ ----------------------- ---------- |