| 712 | } |
| 713 | |
| 714 | void command_set_usage(struct command *cmd, const char *usage TAKES) |
| 715 | { |
| 716 | usage = tal_strdup(NULL, usage); |
| 717 | if (!strmap_add(&cmd->plugin->usagemap, cmd->methodname, usage)) |
| 718 | plugin_err(cmd->plugin, "Two usages for command %s?", |
| 719 | cmd->methodname); |
| 720 | } |
| 721 | |
| 722 | static const char *read_one_json_sync(struct plugin *p, const jsmntok_t **toks) |
| 723 | { |
nothing calls this directly
no test coverage detected