diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-11-12 17:03:10 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-11-12 17:03:10 +0200 |
commit | 95d2af1646080474ad3e1f1303e68dd5799f9cad (patch) | |
tree | f6983d202744cbff88419f582f61c17c6e740bc3 /src/bin/psql/help.c | |
parent | aa3299f25601c1a27e52c1c49e92b7f11441e76b (diff) | |
download | postgresql-95d2af1646080474ad3e1f1303e68dd5799f9cad.tar.gz postgresql-95d2af1646080474ad3e1f1303e68dd5799f9cad.zip |
Add psql expanded auto mode
This adds the "auto" option to the \x command, which switches to the
expanded mode when the normal output would be wider than the screen.
reviewed by Noah Misch
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r-- | src/bin/psql/help.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 53e4cd0c0e2..4649e944755 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -242,8 +242,8 @@ slashUsage(unsigned short int pager) fprintf(output, _(" \\t [on|off] show only rows (currently %s)\n"), ON(pset.popt.topt.tuples_only)); fprintf(output, _(" \\T [STRING] set HTML <table> tag attributes, or unset if none\n")); - fprintf(output, _(" \\x [on|off] toggle expanded output (currently %s)\n"), - ON(pset.popt.topt.expanded)); + fprintf(output, _(" \\x [on|off|auto] toggle expanded output (currently %s)\n"), + pset.popt.topt.expanded == 2 ? "auto" : ON(pset.popt.topt.expanded)); fprintf(output, "\n"); fprintf(output, _("Connection\n")); |