Editorialization for the text emitted by the "help" psql command.
authorNeil Conway <neilc@samurai.com>
Tue, 10 Jun 2008 20:58:19 +0000 (20:58 +0000)
committerNeil Conway <neilc@samurai.com>
Tue, 10 Jun 2008 20:58:19 +0000 (20:58 +0000)
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.

src/bin/psql/mainloop.c

index a8a25e78f48f447845b45fa56e0b57f2f755db3c..20cc913dbc3cd001f21c9fa2c2f33c51d0aecaf9 100644 (file)
@@ -177,12 +177,12 @@ MainLoop(FILE *source)
                        (line[4] == '\0' || line[4] == ';' || isspace((unsigned char) line[4])))
                {
                        free(line);
-                       puts(_("\nYou are using psql, the command-line interface to PostgreSQL."));
-                       puts(_("\t\\? for psql help"));
-                       puts(_("\t\\h or \\help for SQL help\n"));
-                       puts(_("\t\\g or \";\" to execute a query"));
-                       puts(_("\t\\q to quit psql\n"));
-                       puts(_("\t\\copyright to view the copyright\n"));
+                       puts(_("You are using psql, the command-line interface to PostgreSQL."));
+                       printf(_("Type:  \\copyright for distribution terms\n"
+                                        "       \\h for help with SQL commands\n"
+                                        "       \\? for help with psql commands\n"
+                                        "       \\g or terminate with semicolon to execute query\n"
+                                        "       \\q to quit\n"));
 
                        fflush(stdout);
                        continue;