| 217 | } |
| 218 | |
| 219 | UniValue help(const UniValue& params, bool fHelp) |
| 220 | { |
| 221 | if (fHelp || params.size() > 1) |
| 222 | throw runtime_error( |
| 223 | "help ( \"command\" )\n" |
| 224 | "\nList all commands, or get help for a specified command.\n" |
| 225 | "\nArguments:\n" |
| 226 | "1. \"command\" (string, optional) The command to get help on\n" |
| 227 | "\nResult:\n" |
| 228 | "\"text\" (string) The help text\n" |
| 229 | ); |
| 230 | |
| 231 | string strCommand; |
| 232 | if (params.size() > 0) |
| 233 | strCommand = params[0].get_str(); |
| 234 | |
| 235 | return tableRPC.help(strCommand); |
| 236 | } |
| 237 | |
| 238 | |
| 239 | UniValue stop(const UniValue& params, bool fHelp) |