Skip to content

Commit 87dca1c

Browse files
committed
Merge pull request #59 from bwtakacy/change_exit_code
Change exit code for --help and --version.
2 parents 20a679b + 70eac9e commit 87dca1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/pgut/pgut-fe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,12 +754,12 @@ pgut_getopt(int argc, char **argv, pgut_option options[])
754754
if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") == 0)
755755
{
756756
help(true);
757-
exit(1);
757+
exit(0);
758758
}
759759
if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0)
760760
{
761761
printf("%s %s\n", PROGRAM_NAME, PROGRAM_VERSION);
762-
exit(1);
762+
exit(0);
763763
}
764764
if (strcmp(argv[1], "--configuration") == 0)
765765
{

0 commit comments

Comments
 (0)