From b226b7fb6d5269973f8a1927735b8bf16c469f6e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 10 Dec 2024 21:38:37 +0100 Subject: [PATCH] systemd-path: add the usual ANSI sequences to --help text --- src/path/path.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/path/path.c b/src/path/path.c index 8abfc6c7f2b..ad65437c8fe 100644 --- a/src/path/path.c +++ b/src/path/path.c @@ -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; -- 2.47.3