| 186 | } |
| 187 | |
| 188 | std::string HelpExampleCliNamed(const std::string& methodname, const RPCArgList& args) |
| 189 | { |
| 190 | std::string result = "> bitcoin-cli -named " + methodname; |
| 191 | for (const auto& argpair: args) { |
| 192 | const auto& value = argpair.second.isStr() |
| 193 | ? argpair.second.get_str() |
| 194 | : argpair.second.write(); |
| 195 | result += " " + argpair.first + "=" + ShellQuoteIfNeeded(value); |
| 196 | } |
| 197 | result += "\n"; |
| 198 | return result; |
| 199 | } |
| 200 | |
| 201 | std::string HelpExampleRpc(const std::string& methodname, const std::string& args) |
| 202 | { |