mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
pg_ctl: Improve help formatting and order
This commit is contained in:
parent
0160c1d239
commit
63ab1a3981
@ -1914,11 +1914,10 @@ do_help(void)
|
|||||||
|
|
||||||
printf(_("\nCommon options:\n"));
|
printf(_("\nCommon options:\n"));
|
||||||
printf(_(" -D, --pgdata=DATADIR location of the database storage area\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__)
|
#if defined(WIN32) || defined(__CYGWIN__)
|
||||||
printf(_(" -e SOURCE event source to use for logging when running\n"
|
printf(_(" -e SOURCE event source for logging when running as a service\n"));
|
||||||
" as a service\n"));
|
|
||||||
#endif
|
#endif
|
||||||
|
printf(_(" -s, --silent only print errors, no informational messages\n"));
|
||||||
printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n"));
|
printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n"));
|
||||||
printf(_(" -V, --version output version information, then exit\n"));
|
printf(_(" -V, --version output version information, then exit\n"));
|
||||||
printf(_(" -w wait until operation completes\n"));
|
printf(_(" -w wait until operation completes\n"));
|
||||||
@ -2203,15 +2202,15 @@ main(int argc, char **argv)
|
|||||||
pgdata_opt = psprintf("-D \"%s\" ", pgdata_D);
|
pgdata_opt = psprintf("-D \"%s\" ", pgdata_D);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'e':
|
||||||
|
event_source = pg_strdup(optarg);
|
||||||
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
log_file = pg_strdup(optarg);
|
log_file = pg_strdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
set_mode(optarg);
|
set_mode(optarg);
|
||||||
break;
|
break;
|
||||||
case 'e':
|
|
||||||
event_source = pg_strdup(optarg);
|
|
||||||
break;
|
|
||||||
case 'N':
|
case 'N':
|
||||||
register_servicename = pg_strdup(optarg);
|
register_servicename = pg_strdup(optarg);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user