mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-06-29 13:36:17 +00:00
fix passing no args
This commit is contained in:
parent
989a86b369
commit
34db152266
1 changed files with 5 additions and 2 deletions
|
@ -280,10 +280,13 @@ int main(int argc, char** argv) {
|
||||||
dumping_context = true;
|
dumping_context = true;
|
||||||
} else {
|
} else {
|
||||||
fmt::print("Usage: {} <config file> [--dump-context]\n", argv[0]);
|
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;
|
dumping_context = false;
|
||||||
|
} else {
|
||||||
|
fmt::print("Usage: {} <config file> [--dump-context]\n", argv[0]);
|
||||||
|
std::exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* config_path = argv[1];
|
const char* config_path = argv[1];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue