summaryrefslogtreecommitdiff
path: root/contrib/pg_archivecleanup
diff options
context:
space:
mode:
authorPeter Eisentraut2011-05-05 20:11:51 +0000
committerPeter Eisentraut2011-05-05 20:19:13 +0000
commitb24181b26fc90758370e475088be4ef2497d3cc3 (patch)
treef0f3a4d7d98113643df54233be781d2ab08aa109 /contrib/pg_archivecleanup
parentd6d823c8b0e6878cf532120c0c019c7704b27be3 (diff)
Improve pg_archivecleanup and pg_standby --help output
For consistency with other tools, put the options before further usage information. In pg_standby, remove the supposedly deprecated -l option from the given example invocation.
Diffstat (limited to 'contrib/pg_archivecleanup')
-rw-r--r--contrib/pg_archivecleanup/pg_archivecleanup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/pg_archivecleanup/pg_archivecleanup.c b/contrib/pg_archivecleanup/pg_archivecleanup.c
index d96eef2c5a6..dd8a45133c8 100644
--- a/contrib/pg_archivecleanup/pg_archivecleanup.c
+++ b/contrib/pg_archivecleanup/pg_archivecleanup.c
@@ -203,19 +203,19 @@ usage(void)
printf("%s removes older WAL files from PostgreSQL archives.\n\n", progname);
printf("Usage:\n");
printf(" %s [OPTION]... ARCHIVELOCATION OLDESTKEPTWALFILE\n", progname);
+ printf("\nOptions:\n");
+ printf(" -d generates debug output (verbose mode)\n");
+ printf(" --help show this help, then exit\n");
+ printf(" --version output version information, then exit\n");
printf("\n"
- "for use as an archive_cleanup_command in the recovery.conf when standby_mode = on:\n"
+ "For use as archive_cleanup_command in recovery.conf when standby_mode = on:\n"
" archive_cleanup_command = 'pg_archivecleanup [OPTION]... ARCHIVELOCATION %%r'\n"
"e.g.\n"
" archive_cleanup_command = 'pg_archivecleanup /mnt/server/archiverdir %%r'\n");
printf("\n"
- "or for use as a standalone archive cleaner:\n"
+ "Or for use as a standalone archive cleaner:\n"
"e.g.\n"
" pg_archivecleanup /mnt/server/archiverdir 000000010000000000000010.00000020.backup\n");
- printf("\nOptions:\n");
- printf(" -d generates debug output (verbose mode)\n");
- printf(" --help show this help, then exit\n");
- printf(" --version output version information, then exit\n");
printf("\nReport bugs to <pgsql-bugs@postgresql.org>.\n");
}