Skip to content

Commit 70eac9e

Browse files
committed
Change exit code for --help and --version.
Previously, it is 1 but the reason is not clear. It seems to be a historical one because pg_reorg has the same exit codes.
1 parent 20a679b commit 70eac9e

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)