Skip to content

Commit 0c65177

Browse files
committed
Put new command-line options into alphabetical order in help output
1 parent 8ac700a commit 0c65177

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,14 @@ usage(void)
378378
printf(_("Usage:\n"));
379379
printf(_(" %s [OPTION]...\n"), progname);
380380
printf(_("\nOptions controlling the output:\n"));
381-
printf(_(" -t, --target=TARGET[:DETAIL]\n"
382-
" backup target (if other than client)\n"));
383381
printf(_(" -D, --pgdata=DIRECTORY receive base backup into directory\n"));
384382
printf(_(" -F, --format=p|t output format (plain (default), tar)\n"));
385383
printf(_(" -r, --max-rate=RATE maximum transfer rate to transfer data directory\n"
386384
" (in kB/s, or use suffix \"k\" or \"M\")\n"));
387385
printf(_(" -R, --write-recovery-conf\n"
388386
" write configuration for replication\n"));
387+
printf(_(" -t, --target=TARGET[:DETAIL]\n"
388+
" backup target (if other than client)\n"));
389389
printf(_(" -T, --tablespace-mapping=OLDDIR=NEWDIR\n"
390390
" relocate tablespace in OLDDIR to NEWDIR\n"));
391391
printf(_(" --waldir=WALDIR location for the write-ahead log directory\n"));

src/bin/pg_rewind/pg_rewind.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ usage(const char *progname)
8888
printf(_("Options:\n"));
8989
printf(_(" -c, --restore-target-wal use restore_command in target configuration to\n"
9090
" retrieve WAL files from archives\n"));
91-
printf(_(" --config-file=FILENAME use specified main server configuration\n"));
92-
printf(_(" file when running target cluster\n"));
9391
printf(_(" -D, --target-pgdata=DIRECTORY existing data directory to modify\n"));
9492
printf(_(" --source-pgdata=DIRECTORY source data directory to synchronize with\n"));
9593
printf(_(" --source-server=CONNSTR source server to synchronize with\n"));
@@ -99,6 +97,8 @@ usage(const char *progname)
9997
printf(_(" -P, --progress write progress messages\n"));
10098
printf(_(" -R, --write-recovery-conf write configuration for replication\n"
10199
" (requires --source-server)\n"));
100+
printf(_(" --config-file=FILENAME use specified main server configuration\n"
101+
" file when running target cluster\n"));
102102
printf(_(" --debug write a lot of debug messages\n"));
103103
printf(_(" --no-ensure-shutdown do not automatically fix unclean shutdown\n"));
104104
printf(_(" -V, --version output version information, then exit\n"));

src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,11 @@ usage(void)
921921
" --log-prefix=PREFIX prefix for transaction time log file\n"
922922
" (default: \"pgbench_log\")\n"
923923
" --max-tries=NUM max number of tries to run transaction (default: 1)\n"
924-
" --verbose-errors print messages of all errors\n"
925924
" --progress-timestamp use Unix epoch timestamps for progress\n"
926925
" --random-seed=SEED set random seed (\"time\", \"rand\", integer)\n"
927926
" --sampling-rate=NUM fraction of transactions to log (e.g., 0.01 for 1%%)\n"
928927
" --show-script=NAME show builtin script code, then exit\n"
928+
" --verbose-errors print messages of all errors\n"
929929
"\nCommon options:\n"
930930
" -d, --debug print debugging output\n"
931931
" -h, --host=HOSTNAME database server host or socket directory\n"

0 commit comments

Comments
 (0)