Show usage text before invalid short-option error

This commit is contained in:
Stefan Rueger
2026-01-12 23:01:12 +00:00
parent 35cc6688ca
commit b48fd5f534

View File

@@ -1010,8 +1010,9 @@ int main(int argc, char *argv[]) {
break;
default:
pmsg_error("invalid option -%c\n\n", ch);
usage();
msg_error("\n");
pmsg_error("invalid option -%c\n", ch);
exit(1);
}
}