Change the option spelling to --connection-limit to be consistent with the

SQL option spelling.
This commit is contained in:
Peter Eisentraut 2005-09-30 07:13:54 +00:00
parent a7084efd2d
commit 7df9f55f4b
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/createuser.sgml,v 1.42 2005/08/14 20:16:02 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/createuser.sgml,v 1.43 2005/09/30 07:13:53 petere Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
@ -186,7 +186,7 @@ PostgreSQL documentation
<varlistentry> <varlistentry>
<term><option>-c <replaceable class="parameter">number</replaceable></></term> <term><option>-c <replaceable class="parameter">number</replaceable></></term>
<term><option>--conn-limit <replaceable class="parameter">number</replaceable></></term> <term><option>--connection-limit <replaceable class="parameter">number</replaceable></></term>
<listitem> <listitem>
<para> <para>
Set a maximum number of connections for the new user. Set a maximum number of connections for the new user.

View File

@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.18 2005/08/14 20:16:03 tgl Exp $ * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.19 2005/09/30 07:13:54 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -41,7 +41,7 @@ main(int argc, char *argv[])
/* adduser is obsolete, undocumented spelling of superuser */ /* adduser is obsolete, undocumented spelling of superuser */
{"adduser", no_argument, NULL, 'a'}, {"adduser", no_argument, NULL, 'a'},
{"no-adduser", no_argument, NULL, 'A'}, {"no-adduser", no_argument, NULL, 'A'},
{"conn-limit", required_argument, NULL, 'c'}, {"connection-limit", required_argument, NULL, 'c'},
{"pwprompt", no_argument, NULL, 'P'}, {"pwprompt", no_argument, NULL, 'P'},
{"encrypted", no_argument, NULL, 'E'}, {"encrypted", no_argument, NULL, 'E'},
{"unencrypted", no_argument, NULL, 'N'}, {"unencrypted", no_argument, NULL, 'N'},
@ -315,7 +315,7 @@ help(const char *progname)
printf(_(" -i, --inherit role inherits permissions of roles\n")); printf(_(" -i, --inherit role inherits permissions of roles\n"));
printf(_(" it is a member of (default)\n")); printf(_(" it is a member of (default)\n"));
printf(_(" -I, --no-inherit role does not inherit permissions\n")); printf(_(" -I, --no-inherit role does not inherit permissions\n"));
printf(_(" -c, --conn-limit=N max connections for role (default: no limit)\n")); printf(_(" -c, --connection-limit=N connection limit for role (default: no limit)\n"));
printf(_(" -P, --pwprompt assign a password to new role\n")); printf(_(" -P, --pwprompt assign a password to new role\n"));
printf(_(" -E, --encrypted encrypt stored password\n")); printf(_(" -E, --encrypted encrypt stored password\n"));
printf(_(" -N, --unencrypted do not encrypt stored password\n")); printf(_(" -N, --unencrypted do not encrypt stored password\n"));