Exit with appropriate return code if password is not provided, fixes #87

This commit is contained in:
Tiiffi
2024-11-07 21:39:37 +02:00
parent deed43ad61
commit a8e2a9349e

View File

@ -209,7 +209,7 @@ int main(int argc, char *argv[])
if (pass == NULL) {
puts("You must give password (-p password).\nTry 'mcrcon -h' or 'man mcrcon' for help.");
return 0;
exit(EXIT_FAILURE);
}
if(optind == argc && terminal_mode == 0)