From: Lennart Poettering Date: Tue, 12 Jan 2021 20:38:04 +0000 (+0100) Subject: tmpfiles: add ANSI highlighting to our help text X-Git-Tag: v248-rc1~357^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f532a593093a5ae2889f862d058521e74fa254e;p=thirdparty%2Fsystemd.git tmpfiles: add ANSI highlighting to our help text As it is common now in our tools. --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 4ebdaddb5b1..955cf00ce48 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -60,6 +60,7 @@ #include "string-table.h" #include "string-util.h" #include "strv.h" +#include "terminal-util.h" #include "umask-util.h" #include "user-util.h" @@ -2995,8 +2996,8 @@ static int help(void) { if (r < 0) return log_oom(); - printf("%s [OPTIONS...] [CONFIGURATION FILE...]\n\n" - "Creates, deletes and cleans up volatile and temporary files and directories.\n\n" + printf("%s [OPTIONS...] [CONFIGURATION FILE...]\n" + "\n%sCreates, deletes and cleans up volatile and temporary files and directories.%s\n\n" " -h --help Show this help\n" " --user Execute user configuration\n" " --version Show package version\n" @@ -3014,6 +3015,7 @@ static int help(void) { " --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 );