fix option processing not stopping if version or help are used

This commit is contained in:
shrapnelnet 2025-01-21 18:55:14 +00:00
parent e303ac5465
commit 1d7deb164a
Signed by: observer
GPG Key ID: 934A62C2C469FFAF

View File

@ -41,4 +41,8 @@ void parseOptions(int argc, char *argv[]) {
break; break;
} }
} }
if (optind == argc) {
exit(0);
}
} }