core: Always add a search path when `-c` is passed to the cli.
This way modular config load with just `-c` and don't require the extra `-s`.
This commit is contained in:
parent
b038463e22
commit
64d190546d
|
@ -444,6 +444,9 @@ options_check_args(int argc, char **argv, int *init_flags, string_array_t *paths
|
||||||
if (confpath != NULL)
|
if (confpath != NULL)
|
||||||
fatal("--config may only be specified once");
|
fatal("--config may only be specified once");
|
||||||
confpath = a_strdup(optarg);
|
confpath = a_strdup(optarg);
|
||||||
|
|
||||||
|
/* Make sure multi-file config works */
|
||||||
|
string_array_append(paths, g_path_get_dirname(optarg));
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
/* Validation */
|
/* Validation */
|
||||||
|
|
Loading…
Reference in New Issue