From c4a7e5dd9fc48319121d7aaf8ce085494d55138e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 11 Dec 2002 23:03:45 +0000 Subject: [PATCH] psql \? rearrangement, suggested by Tom. --- src/bin/psql/help.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 236cac4513..9393bf525d 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -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 tag attributes, or unset if none\n")); + fprintf(output, _("\n")); if (output != stdout) { -- 2.40.0