diff options
| author | MarcoFalke <[email protected]> | 2018-10-20 08:19:44 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-11-14 15:33:15 -0500 |
| commit | fa91e8eda541acdb78ca481b74605639f319c108 (patch) | |
| tree | c6f299e2daa4c2428ca2039a538b4686a1c1d5f6 /src/rpc/util.cpp | |
| parent | lint: Must use RPCHelpMan to generate the RPC docs (diff) | |
| download | discoin-fa91e8eda541acdb78ca481b74605639f319c108.tar.xz discoin-fa91e8eda541acdb78ca481b74605639f319c108.zip | |
Use RPCHelpMan for all RPCs
Diffstat (limited to 'src/rpc/util.cpp')
| -rw-r--r-- | src/rpc/util.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 6f2450708..0b6bbcb1d 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -150,6 +150,8 @@ std::string RPCHelpMan::ToString() const if (is_optional) ret += " )"; ret += "\n"; + ret += m_description; + return ret; } @@ -185,6 +187,8 @@ std::string RPCArg::ToStringObj() const std::string RPCArg::ToString() const { + if (!m_oneline_description.empty()) return m_oneline_description; + switch (m_type) { case Type::STR_HEX: case Type::STR: { |