| 701 | } |
| 702 | |
| 703 | struct command_result *command_check_done(struct command *cmd) |
| 704 | { |
| 705 | struct json_stream *js = jsonrpc_stream_start(cmd); |
| 706 | assert(command_check_only(cmd)); |
| 707 | |
| 708 | json_out_add_splice(js->jout, "result", |
| 709 | json_out_obj(cmd, "command_to_check", |
| 710 | cmd->methodname)); |
| 711 | return command_complete(cmd, js); |
| 712 | } |
| 713 | |
| 714 | void command_set_usage(struct command *cmd, const char *usage TAKES) |
| 715 | { |