| 168 | } |
| 169 | |
| 170 | static 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 | |
| 182 | void setup_option_allocators(void) |
| 183 | { |
nothing calls this directly
no test coverage detected