2
0
mirror of https://github.com/vasi/pixz synced 2024-10-30 15:21:41 +00:00

Merge pull request #91 from kit-ty-kate/patch-1

Do not return exit status 2 when given -h
This commit is contained in:
Dave Vasilevsky 2020-12-16 12:43:40 -05:00 committed by GitHub
commit 3c7e8bc68c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {