mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +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/dropdb.c,v 1.4 2003/06/11 05:13:12 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/scripts/dropdb.c,v 1.5 2003/07/23 08:47:41 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -80,7 +80,7 @@ main(int argc, char *argv[])
|
||||
interactive = 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);
|
||||
}
|
||||
}
|
||||
@ -89,15 +89,15 @@ main(int argc, char *argv[])
|
||||
{
|
||||
case 0:
|
||||
fprintf(stderr, _("%s: missing required argument database 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);
|
||||
case 1:
|
||||
dbname = argv[optind];
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, _("%s: too many command-line arguments (first is '%s')\n"),
|
||||
fprintf(stderr, _("%s: too many command-line arguments (first is \"%s\")\n"),
|
||||
progname, argv[optind + 1]);
|
||||
fprintf(stderr, _("Try '%s --help' for more information.\n"), progname);
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -105,7 +105,7 @@ main(int argc, char *argv[])
|
||||
{
|
||||
char *reply;
|
||||
|
||||
printf(_("Database \"%s\" will be permanently deleted.\n"), dbname);
|
||||
printf(_("Database \"%s\" will be permanently removed.\n"), dbname);
|
||||
reply = simple_prompt("Are you sure? (y/n) ", 1, true);
|
||||
if (check_yesno_response(reply) != 1)
|
||||
exit(0);
|
||||
|
Reference in New Issue
Block a user