| 174 | } |
| 175 | |
| 176 | std::string HelpExampleCliNamed(const std::string& methodname, const RPCArgList& args) |
| 177 | { |
| 178 | std::string result = "> bitcoin-cli -named " + methodname; |
| 179 | for (const auto& argpair: args) { |
| 180 | const auto& value = argpair.second.isStr() |
| 181 | ? argpair.second.get_str() |
| 182 | : argpair.second.write(); |
| 183 | result += " " + argpair.first + "=" + ShellQuoteIfNeeded(value); |
| 184 | } |
| 185 | result += "\n"; |
| 186 | return result; |
| 187 | } |
| 188 | |
| 189 | std::string HelpExampleRpc(const std::string& methodname, const std::string& args) |
| 190 | { |