mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Make documentation of --help and --version options more consistent
Before, some places didn't document the short options (-? and -V), some documented both, some documented nothing, and they were listed in various orders. Now this is hopefully more consistent and complete.
This commit is contained in:
@ -179,20 +179,20 @@ help(const char *progname)
|
||||
"Usage:\n"
|
||||
" %s [OPTION]...\n"
|
||||
"\nOptions:\n"
|
||||
" -d DBNAME database to connect to\n"
|
||||
" -f FILENODE show info for table with given file node\n"
|
||||
" -H HOSTNAME database server host or socket directory\n"
|
||||
" -i show indexes and sequences too\n"
|
||||
" -o OID show info for table with given OID\n"
|
||||
" -p PORT database server port number\n"
|
||||
" -q quiet (don't show headers)\n"
|
||||
" -s show all tablespaces\n"
|
||||
" -S show system objects too\n"
|
||||
" -t TABLE show info for named table\n"
|
||||
" -U NAME connect as specified database user\n"
|
||||
" -x extended (show additional columns)\n"
|
||||
" --help show this help, then exit\n"
|
||||
" --version output version information, then exit\n"
|
||||
" -d DBNAME database to connect to\n"
|
||||
" -f FILENODE show info for table with given file node\n"
|
||||
" -H HOSTNAME database server host or socket directory\n"
|
||||
" -i show indexes and sequences too\n"
|
||||
" -o OID show info for table with given OID\n"
|
||||
" -p PORT database server port number\n"
|
||||
" -q quiet (don't show headers)\n"
|
||||
" -s show all tablespaces\n"
|
||||
" -S show system objects too\n"
|
||||
" -t TABLE show info for named table\n"
|
||||
" -U NAME connect as specified database user\n"
|
||||
" -V, --version output version information, then exit\n"
|
||||
" -x extended (show additional columns)\n"
|
||||
" -?, --help show this help, then exit\n"
|
||||
"\nThe default action is to show all database OIDs.\n\n"
|
||||
"Report bugs to <pgsql-bugs@postgresql.org>.\n",
|
||||
progname, progname);
|
||||
|
@ -249,11 +249,11 @@ usage(void)
|
||||
printf("Usage:\n");
|
||||
printf(" %s [OPTION]... ARCHIVELOCATION OLDESTKEPTWALFILE\n", progname);
|
||||
printf("\nOptions:\n");
|
||||
printf(" -d generate debug output (verbose mode)\n");
|
||||
printf(" -n dry run, show the names of the files that would be removed\n");
|
||||
printf(" -x EXT clean up files if they have this extension\n");
|
||||
printf(" --help show this help, then exit\n");
|
||||
printf(" --version output version information, then exit\n");
|
||||
printf(" -d generate debug output (verbose mode)\n");
|
||||
printf(" -n dry run, show the names of the files that would be removed\n");
|
||||
printf(" -V, --version output version information, then exit\n");
|
||||
printf(" -x EXT clean up files if they have this extension\n");
|
||||
printf(" -?, --help show this help, then exit\n");
|
||||
printf("\n"
|
||||
"For use as archive_cleanup_command in recovery.conf when standby_mode = on:\n"
|
||||
" archive_cleanup_command = 'pg_archivecleanup [OPTION]... ARCHIVELOCATION %%r'\n"
|
||||
|
@ -527,9 +527,9 @@ usage(void)
|
||||
printf(" -s SLEEPTIME seconds to wait between file checks (min=1, max=60,\n"
|
||||
" default=5)\n");
|
||||
printf(" -t TRIGGERFILE trigger file to initiate failover (no default)\n");
|
||||
printf(" -V, --version output version information, then exit\n");
|
||||
printf(" -w MAXWAITTIME max seconds to wait for a file (0=no limit) (default=0)\n");
|
||||
printf(" --help show this help, then exit\n");
|
||||
printf(" --version output version information, then exit\n");
|
||||
printf(" -?, --help show this help, then exit\n");
|
||||
printf("\n"
|
||||
"Main intended use as restore_command in recovery.conf:\n"
|
||||
" restore_command = 'pg_standby [OPTION]... ARCHIVELOCATION %%f %%p %%r'\n"
|
||||
|
@ -236,7 +236,7 @@ Options:\n\
|
||||
-u, --user=NAME cluster superuser (default \"%s\")\n\
|
||||
-v, --verbose enable verbose internal logging\n\
|
||||
-V, --version display version information, then exit\n\
|
||||
-h, --help show this help, then exit\n\
|
||||
-?, -h, --help show this help, then exit\n\
|
||||
\n\
|
||||
Before running pg_upgrade you must:\n\
|
||||
create a new database cluster (using the new version of initdb)\n\
|
||||
|
@ -368,12 +368,12 @@ usage(const char *progname)
|
||||
" -T NUM duration of benchmark test in seconds\n"
|
||||
" -v vacuum all four standard tables before tests\n"
|
||||
"\nCommon options:\n"
|
||||
" -d print debugging output\n"
|
||||
" -h HOSTNAME database server host or socket directory\n"
|
||||
" -p PORT database server port number\n"
|
||||
" -U USERNAME connect as specified database user\n"
|
||||
" --help show this help, then exit\n"
|
||||
" --version output version information, then exit\n"
|
||||
" -d print debugging output\n"
|
||||
" -h HOSTNAME database server host or socket directory\n"
|
||||
" -p PORT database server port number\n"
|
||||
" -U USERNAME connect as specified database user\n"
|
||||
" -V, --version output version information, then exit\n"
|
||||
" -?, --help show this help, then exit\n"
|
||||
"\n"
|
||||
"Report bugs to <pgsql-bugs@postgresql.org>.\n",
|
||||
progname, progname);
|
||||
|
@ -384,16 +384,17 @@ usage(const char *progname)
|
||||
printf("%s removes unreferenced large objects from databases.\n\n", progname);
|
||||
printf("Usage:\n %s [OPTION]... DBNAME...\n\n", progname);
|
||||
printf("Options:\n");
|
||||
printf(" -h HOSTNAME database server host or socket directory\n");
|
||||
printf(" -l LIMIT commit after removing each LIMIT large objects\n");
|
||||
printf(" -n don't remove large objects, just show what would be done\n");
|
||||
printf(" -p PORT database server port\n");
|
||||
printf(" -U USERNAME user name to connect as\n");
|
||||
printf(" -w never prompt for password\n");
|
||||
printf(" -W force password prompt\n");
|
||||
printf(" -v write a lot of progress messages\n");
|
||||
printf(" --help show this help, then exit\n");
|
||||
printf(" --version output version information, then exit\n");
|
||||
printf(" -l LIMIT commit after removing each LIMIT large objects\n");
|
||||
printf(" -n don't remove large objects, just show what would be done\n");
|
||||
printf(" -v write a lot of progress messages\n");
|
||||
printf(" -V, --version output version information, then exit\n");
|
||||
printf(" -?, --help show this help, then exit\n");
|
||||
printf("\nConnection options:\n");
|
||||
printf(" -h HOSTNAME database server host or socket directory\n");
|
||||
printf(" -p PORT database server port\n");
|
||||
printf(" -U USERNAME user name to connect as\n");
|
||||
printf(" -w never prompt for password\n");
|
||||
printf(" -W force password prompt\n");
|
||||
printf("\n");
|
||||
printf("Report bugs to <pgsql-bugs@postgresql.org>.\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user