diff --git a/src/main.cpp b/src/main.cpp index a62a60e..71dbd1f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,6 +21,11 @@ int main(int argc, char** argv, char** envp) { return 1; } + if (!configPath.empty()) { + Debug::log(NONE, "Multiple config files are provided."); + return 1; + } + configPath = argv[++i]; if (configPath[0] == '-') { // Should be fine, because of the null terminator Debug::log(NONE, "After " + arg + " you should provide a path to a config file.");