From 95d2af1646080474ad3e1f1303e68dd5799f9cad Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 12 Nov 2011 17:03:10 +0200 Subject: 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 --- src/bin/psql/help.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/psql/help.c') 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 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")); -- cgit v1.2.3