Do not do anything if option parsing goes wrong

This commit is contained in:
ISSOtm
2022-03-12 22:37:14 +01:00
committed by Eldred Habert
parent 493b94919f
commit b0f8e04fb7

View File

@@ -511,6 +511,11 @@ int main(int argc, char *argv[]) {
fputs("Ready.\n", stderr); fputs("Ready.\n", stderr);
} }
// Do not do anything if option parsing went wrong
if (nbErrors) {
return 0;
}
process(); process();
return 0; return 0;