]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
socket-proxy: add syntax highlighting to help output
authorBusayo Dada <toyinoluwabusayo@gmail.com>
Mon, 24 Mar 2025 21:19:41 +0000 (22:19 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Mar 2025 12:09:14 +0000 (21:09 +0900)
src/socket-proxy/socket-proxyd.c

index 7648a6ce7d8f604725d1c52f313e35301d981420..3a0160d17f15c118ae26db411f8d308ad20f709c 100644 (file)
@@ -586,16 +586,18 @@ static int help(void) {
 
         printf("%1$s [HOST:PORT]\n"
                "%1$s [SOCKET]\n\n"
-               "Bidirectionally proxy local sockets to another (possibly remote) socket.\n\n"
+               "%2$sBidirectionally proxy local sockets to another (possibly remote) socket.%3$s\n\n"
                "  -c --connections-max=  Set the maximum number of connections to be accepted\n"
                "     --exit-idle-time=   Exit when without a connection for this duration. See\n"
-               "                         the %3$s for time span format\n"
+               "                         the %4$s for time span format\n"
                "  -h --help              Show this help\n"
                "     --version           Show package version\n"
-               "\nSee the %2$s for details.\n",
+               "\nSee the %5$s for details.\n",
                program_invocation_short_name,
-               link,
-               time_link);
+               ansi_highlight(),
+               ansi_normal(),
+               time_link,
+               link);
 
         return 0;
 }