summaryrefslogtreecommitdiff
path: root/src/tmpfiles
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-12 21:38:04 +0100
committerLennart Poettering <lennart@poettering.net>2021-01-12 22:00:35 +0100
commit3f532a593093a5ae2889f862d058521e74fa254e (patch)
tree080fa81aef6b67a49d14e699b4fc642263af078b /src/tmpfiles
parentfa67d9c0d652dc41574b546f542909e9c8157237 (diff)
downloadsystemd-3f532a593093a5ae2889f862d058521e74fa254e.tar.gz
tmpfiles: add ANSI highlighting to our help text
As it is common now in our tools.
Diffstat (limited to 'src/tmpfiles')
-rw-r--r--src/tmpfiles/tmpfiles.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 4ebdaddb5b..955cf00ce4 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
);