Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite5c453e

Browse files
committed
Clean up the help displays.
1 parent7df9f55 commite5c453e

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

‎src/bin/scripts/createuser.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.19 2005/09/30 07:13:54 petere Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.20 2005/09/30 07:58:01 petere Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -302,7 +302,7 @@ help(const char *progname)
302302
{
303303
printf(_("%s creates a new PostgreSQL role.\n\n"),progname);
304304
printf(_("Usage:\n"));
305-
printf(_(" %s [OPTION]... [USERNAME]\n"),progname);
305+
printf(_(" %s [OPTION]... [ROLENAME]\n"),progname);
306306
printf(_("\nOptions:\n"));
307307
printf(_(" -s, --superuser role will be superuser\n"));
308308
printf(_(" -S, --no-superuser role will not be superuser\n"));
@@ -312,9 +312,9 @@ help(const char *progname)
312312
printf(_(" -R, --no-createrole role cannot create roles\n"));
313313
printf(_(" -l, --login role can login (default)\n"));
314314
printf(_(" -L, --no-login role cannot login\n"));
315-
printf(_(" -i, --inherit role inheritspermissions of roles\n"));
316-
printf(_("it is a member of (default)\n"));
317-
printf(_(" -I, --no-inherit role does not inheritpermissions\n"));
315+
printf(_(" -i, --inherit role inheritsprivileges of roles it is a\n"
316+
" member of (default)\n"));
317+
printf(_(" -I, --no-inherit role does not inheritprivileges\n"));
318318
printf(_(" -c, --connection-limit=N connection limit for role (default: no limit)\n"));
319319
printf(_(" -P, --pwprompt assign a password to new role\n"));
320320
printf(_(" -E, --encrypted encrypt stored password\n"));
@@ -328,7 +328,7 @@ help(const char *progname)
328328
printf(_(" -p, --port=PORT database server port\n"));
329329
printf(_(" -U, --username=USERNAME user name to connect as (not the one to create)\n"));
330330
printf(_(" -W, --password prompt for password to connect\n"));
331-
printf(_("\nIf one of -s, -S, -d, -D, -r, -R andUSERNAME is not specified,\n"
332-
"you willbe prompted interactively.\n"));
331+
printf(_("\nIf one of -s, -S, -d, -D, -r, -R andROLENAME is not specified, you will\n"
332+
"be prompted interactively.\n"));
333333
printf(_("\nReport bugs to <pgsql-bugs@postgresql.org>.\n"));
334334
}

‎src/bin/scripts/dropuser.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.15 2005/08/15 02:40:28 tgl Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.16 2005/09/30 07:58:01 petere Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -143,9 +143,9 @@ main(int argc, char *argv[])
143143
staticvoid
144144
help(constchar*progname)
145145
{
146-
printf(_("%s removes a PostgreSQLuser.\n\n"),progname);
146+
printf(_("%s removes a PostgreSQLrole.\n\n"),progname);
147147
printf(_("Usage:\n"));
148-
printf(_(" %s [OPTION]... [USERNAME]\n"),progname);
148+
printf(_(" %s [OPTION]... [ROLENAME]\n"),progname);
149149
printf(_("\nOptions:\n"));
150150
printf(_(" -e, --echo show the commands being sent to the server\n"));
151151
printf(_(" -i, --interactive prompt before deleting anything\n"));

‎src/bin/scripts/reindexdb.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/scripts/reindexdb.c,v 1.1 2005/07/29 15:13:11 momjian Exp $
7+
* $PostgreSQL: pgsql/src/bin/scripts/reindexdb.c,v 1.2 2005/09/30 07:58:01 petere Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -332,20 +332,20 @@ help(const char *progname)
332332
printf(_("Usage:\n"));
333333
printf(_(" %s [OPTION]... [DBNAME]\n"),progname);
334334
printf(_("\nOptions:\n"));
335-
printf(_(" -a, --all reindex all databases\n"));
336-
printf(_(" -s, --system reindex system catalogs\n"));
337-
printf(_(" -d, --dbname=DBNAME database to reindex\n"));
338-
printf(_(" -t, --table=TABLE reindex specific table only\n"));
339-
printf(_(" -i, --index=INDEX recreate specific index only\n"));
340-
printf(_(" -e, --echo show the commands sent to the server\n"));
341-
printf(_(" -q, --quiet don't write any output\n"));
342-
printf(_(" --help show this help, then exit\n"));
343-
printf(_(" --version output version information, then exit\n"));
335+
printf(_(" -a, --allreindex all databases\n"));
336+
printf(_(" -s, --systemreindex system catalogs\n"));
337+
printf(_(" -d, --dbname=DBNAMEdatabase to reindex\n"));
338+
printf(_(" -t, --table=TABLEreindex specific table only\n"));
339+
printf(_(" -i, --index=INDEXrecreate specific index only\n"));
340+
printf(_(" -e, --echoshow the commands sent to the server\n"));
341+
printf(_(" -q, --quietdon't write any output\n"));
342+
printf(_(" --helpshow this help, then exit\n"));
343+
printf(_(" --versionoutput version information, then exit\n"));
344344
printf(_("\nConnection options:\n"));
345-
printf(_(" -h, --host=HOSTNAME database server host or socket direcotry\n"));
346-
printf(_(" -p, --port=PORT database server port\n"));
347-
printf(_(" -U, --username=NAME user name to connect as\n"));
348-
printf(_(" -W, --password prompt for password\n"));
345+
printf(_(" -h, --host=HOSTNAMEdatabase server host or socket direcotry\n"));
346+
printf(_(" -p, --port=PORTdatabase server port\n"));
347+
printf(_(" -U, --username=NAMEuser name to connect as\n"));
348+
printf(_(" -W, --passwordprompt for password\n"));
349349
printf(_("\nRead the description of the SQL command REINDEX for details.\n"));
350350
printf(_("\nReport bugs to <pgsql-bugs@postgresql.org>.\n"));
351351
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp