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

Commit 109940c

Browse files
author
Neil Conway
committed
Editorialization for the text emitted by the "help" psql command.
Basically just reuse the same text that psql emitted as part of its startup banner in prior versions, and make some whitespace more consistent with the conventions in other psql command output.
1 parent 99b8ebe commit 109940c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/bin/psql/mainloop.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.91 2008/05/16 17:17:00 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.92 2008/06/10 20:58:19 neilc Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "mainloop.h"
@@ -177,12 +177,12 @@ MainLoop(FILE *source)
177177
(line[4] == '\0' || line[4] == ';' || isspace((unsigned char) line[4])))
178178
{
179179
free(line);
180-
puts(_("\nYou are using psql, the command-line interface to PostgreSQL."));
181-
puts(_("\t\\? for psql help"));
182-
puts(_("\t\\h or \\help for SQL help\n"));
183-
puts(_("\t\\g or \";\" to execute a query"));
184-
puts(_("\t\\q to quit psql\n"));
185-
puts(_("\t\\copyright to view the copyright\n"));
180+
puts(_("You are using psql, the command-line interface to PostgreSQL."));
181+
printf(_("Type: \\copyright for distribution terms\n"
182+
" \\h for help with SQL commands\n"
183+
" \\? for help with psql commands\n"
184+
" \\g or terminate with semicolon to execute query\n"
185+
" \\q to quit\n"));
186186

187187
fflush(stdout);
188188
continue;

0 commit comments

Comments
 (0)