mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-05 03:35:35 +00:00
Do not do anything if option parsing goes wrong
This commit is contained in:
1 parent
493b94919f
commit
b0f8e04fb7
1 file changed
+5
@@ -511,6 +511,11 @@ int main(int argc, char *argv[]) {
|
||||
fputs("Ready.\n", stderr);
|
||||
}
|
||||
|
||||
// Do not do anything if option parsing went wrong
|
||||
if (nbErrors) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
process();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user