1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-22 12:22:45 +03:00

Cleanup on --help-config: Now called --describe-config, no further options,

machine readable, without headers, not sorted.  Parameter descriptions
adjusted to fit first sentence + rest convention.
This commit is contained in:
Peter Eisentraut
2003-10-18 22:59:09 +00:00
parent e341cdb085
commit 9d77708d83
5 changed files with 168 additions and 449 deletions

View File

@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.64 2003/09/27 09:29:31 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.65 2003/10/18 22:59:08 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -222,12 +222,11 @@ main(int argc, char *argv[])
exit(BootstrapMain(argc - 1, new_argv + 1));
/*
* If the first argument is "--help-config", then invoke runtime
* configuration option display mode. We remove "--help-config" from
* the arguments passed on to GucInfoMain.
* If the first argument is "--describe-config", then invoke runtime
* configuration option display mode.
*/
if (argc > 1 && strcmp(new_argv[1], "--help-config") == 0)
exit(GucInfoMain(argc, new_argv));
if (argc > 1 && strcmp(new_argv[1], "--describe-config") == 0)
exit(GucInfoMain());
/*
* Otherwise we're a standalone backend. Invoke PostgresMain,