mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Apply message style guide to frontend programs.
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/bin/scripts/droplang.c,v 1.3 2003/06/11 05:13:12 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/scripts/droplang.c,v 1.4 2003/07/23 08:47:41 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -85,7 +85,7 @@ main(int argc, char *argv[])
|
||||
echo = true;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, _("Try '%s --help' for more information.\n"), progname);
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
@ -104,9 +104,9 @@ main(int argc, char *argv[])
|
||||
|
||||
if (argc - optind > 0)
|
||||
{
|
||||
fprintf(stderr, _("%s: too many command line options (first is '%s')\n"),
|
||||
fprintf(stderr, _("%s: too many command-line arguments (first is \"%s\")\n"),
|
||||
progname, argv[optind]);
|
||||
fprintf(stderr, _("Try '%s --help' for more information.\n"), progname);
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ main(int argc, char *argv[])
|
||||
if (langname == NULL)
|
||||
{
|
||||
fprintf(stderr, _("%s: missing required argument language name\n"), progname);
|
||||
fprintf(stderr, _("Try '%s --help' for more information.\n"), progname);
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -182,7 +182,7 @@ main(int argc, char *argv[])
|
||||
{
|
||||
PQfinish(conn);
|
||||
fprintf(stderr,
|
||||
_("%s: There are %s functions declared in language \"%s\". Language not removed.\n"),
|
||||
_("%s: still %s functions declared in language \"%s\"; language not removed\n"),
|
||||
progname, PQgetvalue(result, 0, 0), langname);
|
||||
exit(1);
|
||||
}
|
||||
@ -241,7 +241,7 @@ help(const char *progname)
|
||||
printf(_("Usage:\n"));
|
||||
printf(_(" %s [OPTION]... LANGNAME [DBNAME]\n"), progname);
|
||||
printf(_("\nOptions:\n"));
|
||||
printf(_(" -d, --dbname=DBNAME database to install language in\n"));
|
||||
printf(_(" -d, --dbname=DBNAME database from which to remove the language\n"));
|
||||
printf(_(" -e, --echo show the commands being sent to the server\n"));
|
||||
printf(_(" -l, --list show a list of currently installed languages\n"));
|
||||
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
|
||||
|
Reference in New Issue
Block a user