mount-tool: use the usual coloring in --help text

This commit is contained in:
Lennart Poettering
2024-07-10 09:35:31 +02:00
parent 66f4f49c8f
commit 3d41dfe447
+3 -1
View 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;