This commit is contained in:
LittleCube 2025-10-08 13:57:38 +01:00 committed by GitHub
commit 000f434907
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -280,10 +280,13 @@ int main(int argc, char** argv) {
dumping_context = true;
} else {
fmt::print("Usage: {} <config file> [--dump-context]\n", argv[0]);
std::exit(EXIT_SUCCESS);
std::exit(EXIT_FAILURE);
}
} else {
} else if (argc >= 2) {
dumping_context = false;
} else {
fmt::print("Usage: {} <config file> [--dump-context]\n", argv[0]);
std::exit(EXIT_FAILURE);
}
const char* config_path = argv[1];