]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount-tool: use the usual coloring in --help text
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Jul 2024 12:37:58 +0000 (14:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2024 07:35:31 +0000 (09:35 +0200)
src/mount/mount-tool.c

index f127168c6022d1171861a230f626f6aecb045e1c..1c11cdd5f86d1800dce21fc79c0609f9878a0e58 100644 (file)
@@ -120,7 +120,7 @@ static int help(void) {
                "systemd-mount [OPTIONS...] --tmpfs [NAME] WHERE\n"
                "systemd-mount [OPTIONS...] --list\n"
                "%s [OPTIONS...] %sWHAT|WHERE...\n\n"
-               "Establish a mount or auto-mount point transiently.\n\n"
+               "%sEstablish a mount or auto-mount point transiently.%s\n\n"
                "  -h --help                       Show this help\n"
                "     --version                    Show package version\n"
                "     --no-block                   Do not wait until operation finished\n"
@@ -152,6 +152,8 @@ static int help(void) {
                "\nSee the %s for details.\n",
                program_invocation_short_name,
                streq(program_invocation_short_name, "systemd-umount") ? "" : "--umount ",
+               ansi_highlight(),
+               ansi_normal(),
                link);
 
         return 0;