Use RPCHelpMan for all RPCs

This commit is contained in:
MarcoFalke
2018-10-20 08:19:44 -04:00
parent fa520e72f7
commit fa91e8eda5
11 changed files with 1008 additions and 426 deletions

View File

@@ -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: {