Fix psql's \? output for \watch
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 18 Sep 2023 14:19:25 +0000 (16:19 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 18 Sep 2023 14:19:25 +0000 (16:19 +0200)
It was reported as misaligned by Kyotaro, but it also needed to be
turned into a single translatable phrase (like the one for \g is), as
reported by Yugo.

This is a new issue (commit f347ec76e2a2), so no backpatch is needed.

Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Author: Yugo NAGATA <nagata@sraoss.co.jp>
Discussion: https://postgr.es/m/20230907.142956.2038600444404289870.horikyota.ntt@gmail.com

src/bin/psql/help.c

index 38c165a6270260c783949e451e9aaa7ea7c93257..12280c0e541106b6a21c395aae14c484a3802132 100644 (file)
@@ -200,9 +200,9 @@ slashUsage(unsigned short int pager)
        HELP0("  \\gset [PREFIX]         execute query and store result in psql variables\n");
        HELP0("  \\gx [(OPTIONS)] [FILE] as \\g, but forces expanded output mode\n");
        HELP0("  \\q                     quit psql\n");
-       HELP0("  \\watch [[i=]SEC] [c=N] [m=MIN]\n");
-       HELP0("                          execute query every SEC seconds, up to N times\n");
-       HELP0("                          stop if less than MIN rows are returned\n");
+       HELP0("  \\watch [[i=]SEC] [c=N] [m=MIN]\n"
+                 "                         execute query every SEC seconds, up to N times\n"
+                 "                         stop if less than MIN rows are returned\n");
        HELP0("\n");
 
        HELP0("Help\n");