From 70eac9ee067b7f277286c8e127c4a1aa4a1b861f Mon Sep 17 00:00:00 2001 From: bwtakacy Date: Thu, 26 Nov 2015 21:51:09 +0900 Subject: [PATCH] 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. --- bin/pgut/pgut-fe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pgut/pgut-fe.c b/bin/pgut/pgut-fe.c index fd58258..5ed4fed 100644 --- a/bin/pgut/pgut-fe.c +++ b/bin/pgut/pgut-fe.c @@ -754,12 +754,12 @@ pgut_getopt(int argc, char **argv, pgut_option options[]) if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") == 0) { help(true); - exit(1); + exit(0); } if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0) { printf("%s %s\n", PROGRAM_NAME, PROGRAM_VERSION); - exit(1); + exit(0); } if (strcmp(argv[1], "--configuration") == 0) {