MCPcopy Create free account
hub / github.com/ElementsProject/lightning / bool_option

Function bool_option

plugins/libplugin.c:1671–1679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1669}
1670
1671char *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
1681char *flag_option(struct command *cmd, const char *arg, bool check_only, bool *i)
1682{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected