mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-06-30 14:06:16 +00:00
fix arg2 check and usage string
This commit is contained in:
parent
fe84307d7f
commit
5c52194e44
2 changed files with 4 additions and 3 deletions
|
@ -275,10 +275,11 @@ int main(int argc, char** argv) {
|
|||
bool dumping_context;
|
||||
|
||||
if (argc >= 3) {
|
||||
if (strncmp(argv[2], "--dump-context", 14) == 0) {
|
||||
std::string arg2 = argv[2];
|
||||
if (arg2 == "--dump-context") {
|
||||
dumping_context = true;
|
||||
} else {
|
||||
fmt::print("Usage: {} [config file] (should-dump)\n", argv[0]);
|
||||
fmt::print("Usage: {} <config file> [--dump-context]\n", argv[0]);
|
||||
std::exit(EXIT_SUCCESS);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue