psql \? rearrangement, suggested by Tom.

This commit is contained in:
Bruce Momjian 2002-12-11 23:03:45 +00:00
parent 721dd19212
commit c4a7e5dd9f
1 changed files with 7 additions and 6 deletions

View File

@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.64 2002/12/11 22:45:13 momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.65 2002/12/11 23:03:45 momjian Exp $
*/
#include "postgres_fe.h"
#include "common.h"
@ -191,13 +191,16 @@ slashUsage(unsigned short int pager)
fprintf(output, _(" \\g [FILE] send query buffer to server (and results to file or |pipe)\n"));
fprintf(output, _(" \\r reset (clear) the query buffer\n"));
fprintf(output, _(" \\e [FILE] edit the query buffer (or file) with external editor\n"));
fprintf(output, _(" \\i FILE execute commands from file\n"));
fprintf(output, _(" \\p show the contents of the query buffer\n"));
fprintf(output, _(" \\w [FILE] write query buffer to file\n"));
fprintf(output, _(" \\o FILE send all query results to file or |pipe\n"));
fprintf(output, _(" \\s [FILE] display history or save it to file\n"));
fprintf(output, _("\n"));
fprintf(output, _("I/O Redirection\n"));
fprintf(output, _(" \\i FILE execute commands from file\n"));
fprintf(output, _(" \\o FILE send all query results to file or |pipe\n"));
fprintf(output, _("\n"));
fprintf(output, _("Informational\n"));
fprintf(output, _(" \\d [NAME] describe table, index, sequence, or view\n"));
fprintf(output, _(" \\d{t|i|s|v|S} [PATTERN] (add \"+\" for more detail)\n"
@ -236,12 +239,10 @@ slashUsage(unsigned short int pager)
ON(pset.popt.topt.tuples_only));
fprintf(output, _(" \\echo [STRING] write string to standard output\n"));
fprintf(output, _(" \\qecho [STRING] write string to query output stream (see \\o)\n"));
fprintf(output, _("\n"));
fprintf(output, _("HTML Output\n"));
fprintf(output, _(" \\H toggle HTML output mode (currently %s)\n"),
ON(pset.popt.topt.format == PRINT_HTML));
fprintf(output, _(" \\T [STRING] set HTML <table> tag attributes, or unset if none\n"));
fprintf(output, _("\n"));
if (output != stdout)
{