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

Function opt_set_lightning_dir

common/configdir.c:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170static char *opt_set_lightning_dir(const char *arg, char **p)
171{
172 /* Ignore if called directly from opt (e.g. lightning-cli) */
173 if (!current_cv)
174 return NULL;
175
176 if (current_cv->src == CONFIGVAR_CMDLINE
177 || current_cv->src == CONFIGVAR_EXPLICIT_CONF)
178 return opt_set_abspath(arg, p);
179 return "not permitted in implicit configuration files";
180}
181
182void setup_option_allocators(void)
183{

Callers

nothing calls this directly

Calls 1

opt_set_abspathFunction · 0.85

Tested by

no test coverage detected