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:
Emmanuel Lepage Vallee 2021-09-22 13:38:20 -07:00
parent b038463e22
commit 64d190546d
1 changed files with 3 additions and 0 deletions

View File

@ -444,6 +444,9 @@ options_check_args(int argc, char **argv, int *init_flags, string_array_t *paths
if (confpath != NULL)
fatal("--config may only be specified once");
confpath = a_strdup(optarg);
/* Make sure multi-file config works */
string_array_append(paths, g_path_get_dirname(optarg));
break;
case 'm':
/* Validation */