Skip to content

Commit 72ed390

Browse files
committed
pg_ctl: Improve help formatting and order
1 parent ac7cbf4 commit 72ed390

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/bin/pg_ctl/pg_ctl.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,11 +1914,10 @@ do_help(void)
19141914

19151915
printf(_("\nCommon options:\n"));
19161916
printf(_(" -D, --pgdata=DATADIR location of the database storage area\n"));
1917-
printf(_(" -s, --silent only print errors, no informational messages\n"));
19181917
#if defined(WIN32) || defined(__CYGWIN__)
1919-
printf(_(" -e SOURCE event source to use for logging when running\n"
1920-
" as a service\n"));
1918+
printf(_(" -e SOURCE event source for logging when running as a service\n"));
19211919
#endif
1920+
printf(_(" -s, --silent only print errors, no informational messages\n"));
19221921
printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n"));
19231922
printf(_(" -V, --version output version information, then exit\n"));
19241923
printf(_(" -w wait until operation completes\n"));
@@ -2203,15 +2202,15 @@ main(int argc, char **argv)
22032202
pgdata_opt = psprintf("-D \"%s\" ", pgdata_D);
22042203
break;
22052204
}
2205+
case 'e':
2206+
event_source = pg_strdup(optarg);
2207+
break;
22062208
case 'l':
22072209
log_file = pg_strdup(optarg);
22082210
break;
22092211
case 'm':
22102212
set_mode(optarg);
22112213
break;
2212-
case 'e':
2213-
event_source = pg_strdup(optarg);
2214-
break;
22152214
case 'N':
22162215
register_servicename = pg_strdup(optarg);
22172216
break;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy