| 157 | } |
| 158 | |
| 159 | static char *opt_set_config_filename(const char *arg, char **p) |
| 160 | { |
| 161 | /* Ignore if called directly from opt (e.g. lightning-cli) */ |
| 162 | if (!current_cv) |
| 163 | return NULL; |
| 164 | |
| 165 | if (current_cv->src == CONFIGVAR_CMDLINE) |
| 166 | return opt_set_abspath(arg, p); |
| 167 | return "not permitted in configuration files"; |
| 168 | } |
| 169 | |
| 170 | static char *opt_set_lightning_dir(const char *arg, char **p) |
| 171 | { |
nothing calls this directly
no test coverage detected