From 72ed3905563cfd847c6ab0b39415423238652ef1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 26 Sep 2015 21:09:52 -0400 Subject: [PATCH] pg_ctl: Improve help formatting and order --- src/bin/pg_ctl/pg_ctl.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 6a36d29f43..ba189e7288 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -1914,11 +1914,10 @@ do_help(void) printf(_("\nCommon options:\n")); printf(_(" -D, --pgdata=DATADIR location of the database storage area\n")); - printf(_(" -s, --silent only print errors, no informational messages\n")); #if defined(WIN32) || defined(__CYGWIN__) - printf(_(" -e SOURCE event source to use for logging when running\n" - " as a service\n")); + printf(_(" -e SOURCE event source for logging when running as a service\n")); #endif + printf(_(" -s, --silent only print errors, no informational messages\n")); printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n")); printf(_(" -V, --version output version information, then exit\n")); printf(_(" -w wait until operation completes\n")); @@ -2203,15 +2202,15 @@ main(int argc, char **argv) pgdata_opt = psprintf("-D \"%s\" ", pgdata_D); break; } + case 'e': + event_source = pg_strdup(optarg); + break; case 'l': log_file = pg_strdup(optarg); break; case 'm': set_mode(optarg); break; - case 'e': - event_source = pg_strdup(optarg); - break; case 'N': register_servicename = pg_strdup(optarg); break;