Do not return exit status 2 when given -h

This is rather surprising for pixz to "fail" when giving `--help`/`-h`.
pull/91/head
Kate 4 years ago committed by GitHub
parent ec33de7b18
commit 57de570db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,7 +51,9 @@ static void usage(const char *msg) {
"https://github.com/vasi/pixz\n"
"You may use this software under the FreeBSD License\n",
PACKAGE_VERSION);
exit(2);
if (msg)
exit(2);
exit(0);
}
int main(int argc, char **argv) {

Loading…
Cancel
Save