Clean up \? psql display.
authorBruce Momjian
Fri, 5 Nov 1999 01:25:39 +0000 (01:25 +0000)
committerBruce Momjian
Fri, 5 Nov 1999 01:25:39 +0000 (01:25 +0000)
src/bin/psql/help.c

index b94503c895389980bbe97ade2c6289be7c9b9ed0..4cea439895d39e2705fb524bed207820c5125827 100644 (file)
@@ -177,11 +177,11 @@ slashUsage(PsqlSettings *pset)
 
    /* if you add/remove a line here, change the row test above */
    fprintf(fout, " \\?           -- help\n");
-   fprintf(fout, " \\c[onnect] [|- [|?]] -- connect to new database (currently '%s')\n", PQdb(pset->db));
-   fprintf(fout, " \\copy [binary]  [with oids] {from|to}  [with delimiters '']\n");
+   fprintf(fout, " \\c[onnect] [|- [|?]] -- connect to new database (now '%s')\n", PQdb(pset->db));
+   fprintf(fout, " \\copy [binary] 
 [with oids] {from|to} [using delimiters '']\n");
    fprintf(fout, " \\copyright   -- show PostgreSQL copyright\n");
    fprintf(fout, " \\d           -- list tables, views, and sequences\n");
-   fprintf(fout, " \\distvS      -- list only indices/sequences/tables/views/system tables\n");
+   fprintf(fout, " \\d{i|s|t|v|S}-- list only indices/sequences/tables/views/system tables\n");
    fprintf(fout, " \\da          -- list aggregates\n");
    fprintf(fout, " \\dd []- list comment for table, type, function, or operator\n");
    fprintf(fout, " \\df          -- list functions\n");
@@ -202,8 +202,8 @@ slashUsage(PsqlSettings *pset)
    fprintf(fout, " \\r           -- reset (clear) the query buffer\n");
    fprintf(fout, " \\s [] -- print history or save it in \n");
    fprintf(fout, " \\set  [] -- set/unset internal variable\n");
-   fprintf(fout, " \\t           -- don't show table headers or footers (currently %s)\n", ON(pset->popt.topt.tuples_only));
-   fprintf(fout, " \\x           -- toggle expanded output (currently %s)\n", ON(pset->popt.topt.expanded));
+   fprintf(fout, " \\t           -- don't show table headers or footers (now %s)\n", ON(pset->popt.topt.tuples_only));
+   fprintf(fout, " \\x           -- toggle expanded output (now %s)\n", ON(pset->popt.topt.expanded));
    fprintf(fout, " \\w    -- write current query buffer to a file\n");
    fprintf(fout, " \\z           -- list table access permissions\n");
    fprintf(fout, " \\! []   -- shell escape or command\n");