| 1417 | } |
| 1418 | |
| 1419 | void command_set_usage(struct command *cmd, const char *usage TAKES) |
| 1420 | { |
| 1421 | struct cmd_and_usage *cmd_and_usage; |
| 1422 | |
| 1423 | cmd_and_usage = strmap_get(&cmd->ld->jsonrpc->cmdmap, cmd->json_cmd->name); |
| 1424 | assert(!cmd_and_usage->usage); |
| 1425 | cmd_and_usage->usage = tal_strdup(cmd_and_usage, usage); |
| 1426 | } |
| 1427 | |
| 1428 | bool command_check_only(const struct command *cmd) |
| 1429 | { |
nothing calls this directly
no outgoing calls
no test coverage detected