Merge pull request #209 from scop/exit-statuses

Exit status fixes.
This commit is contained in:
Con Kolivas 2021-08-29 18:54:15 +10:00 committed by GitHub
commit 6a1600b354
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

7
main.c
View file

@ -409,9 +409,9 @@ int main(int argc, char *argv[])
control->flags |= FLAG_FORCE_REPLACE;
break;
case 'h':
case '?':
usage(compat);
return -1;
exit(0);
break;
case 'H':
control->flags |= FLAG_HASH;
break;
@ -544,6 +544,9 @@ int main(int argc, char *argv[])
case '9':
control->compression_level = c - '0';
break;
default:
usage(compat);
return 2;
}
}