]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-path: add the usual ANSI sequences to --help text
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Dec 2024 20:38:37 +0000 (21:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2024 16:51:52 +0000 (17:51 +0100)
src/path/path.c

index 8abfc6c7f2b0a9bdf4a797fd2a5c063c72d6d923..ad65437c8fe912826d819c4ec323dbb8d818365c 100644 (file)
@@ -168,14 +168,16 @@ static int help(void) {
         if (r < 0)
                 return log_oom();
 
-        printf("%s [OPTIONS...] [NAME...]\n\n"
-               "Show system and user paths.\n\n"
+        printf("%s [OPTIONS...] [NAME...]\n"
+               "\n%sShow system and user paths.%s\n\n"
                "  -h --help             Show this help\n"
                "     --version          Show package version\n"
                "     --suffix=SUFFIX    Suffix to append to paths\n"
                "     --no-pager         Do not pipe output into a pager\n"
                "\nSee the %s for details.\n",
                program_invocation_short_name,
+               ansi_highlight(),
+               ansi_normal(),
                link);
 
         return 0;