| 1669 | } |
| 1670 | |
| 1671 | char *bool_option(struct command *cmd, const char *arg, bool check_only, bool *i) |
| 1672 | { |
| 1673 | if (!streq(arg, "true") && !streq(arg, "false")) |
| 1674 | return tal_fmt(tmpctx, "'%s' is not a bool, must be \"true\" or \"false\"", arg); |
| 1675 | |
| 1676 | if (!check_only) |
| 1677 | *i = streq(arg, "true"); |
| 1678 | return NULL; |
| 1679 | } |
| 1680 | |
| 1681 | char *flag_option(struct command *cmd, const char *arg, bool check_only, bool *i) |
| 1682 | { |
nothing calls this directly
no outgoing calls
no test coverage detected