Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9d77708

Browse files
committed
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.
1 parent e341cdb commit 9d77708

File tree

5 files changed

+164
-445
lines changed

5 files changed

+164
-445
lines changed

src/backend/main/main.c

+5-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*
1515
* IDENTIFICATION
16-
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.64 2003/09/27 09:29:31 petere Exp $
16+
* $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.65 2003/10/18 22:59:08 petere Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -222,12 +222,11 @@ main(int argc, char *argv[])
222222
exit(BootstrapMain(argc - 1, new_argv + 1));
223223

224224
/*
225-
* If the first argument is "--help-config", then invoke runtime
226-
* configuration option display mode. We remove "--help-config" from
227-
* the arguments passed on to GucInfoMain.
225+
* If the first argument is "--describe-config", then invoke runtime
226+
* configuration option display mode.
228227
*/
229-
if (argc > 1 && strcmp(new_argv[1], "--help-config") == 0)
230-
exit(GucInfoMain(argc, new_argv));
228+
if (argc > 1 && strcmp(new_argv[1], "--describe-config") == 0)
229+
exit(GucInfoMain());
231230

232231
/*
233232
* Otherwise we're a standalone backend. Invoke PostgresMain,

src/backend/tcop/postgres.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.373 2003/10/16 16:50:41 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.374 2003/10/18 22:59:08 petere Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -1989,8 +1989,7 @@ usage(char *progname)
19891989
printf(gettext(" -P disable system indexes\n"));
19901990
printf(gettext(" -s show statistics after each query\n"));
19911991
printf(gettext(" -S SORT-MEM set amount of memory for sorts (in kbytes)\n"));
1992-
printf(gettext(" --help-config show configuration parameters, then exit;\n"
1993-
" details: --help-config -h\n"));
1992+
printf(gettext(" --describe-config describe configuration parameters, then exit\n"));
19941993
printf(gettext(" --help show this help, then exit\n"));
19951994
printf(gettext(" --version output version information, then exit\n"));
19961995
printf(gettext("\nDeveloper options:\n"));
@@ -2660,7 +2659,7 @@ PostgresMain(int argc, char *argv[], const char *username)
26602659
if (!IsUnderPostmaster)
26612660
{
26622661
puts("\nPOSTGRES backend interactive interface ");
2663-
puts("$Revision: 1.373 $ $Date: 2003/10/16 16:50:41 $\n");
2662+
puts("$Revision: 1.374 $ $Date: 2003/10/18 22:59:08 $\n");
26642663
}
26652664

26662665
/*

0 commit comments

Comments
 (0)