fix: return exit code 1 without args

This commit is contained in:
Jozef Steinhübl 2024-08-07 22:47:09 +02:00
parent e937523a25
commit 7e9d29d806
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -4,7 +4,7 @@
int main(int argc, char **argv) { int main(int argc, char **argv) {
if (argc == 1) { if (argc == 1) {
cli_print_help(); cli_print_help();
return 0; return 1;
} }
if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) {