From: Lennart Poettering Date: Tue, 10 Dec 2024 20:38:37 +0000 (+0100) Subject: systemd-path: add the usual ANSI sequences to --help text X-Git-Tag: v258-rc1~1795^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b226b7fb6d5269973f8a1927735b8bf16c469f6e;p=thirdparty%2Fsystemd.git systemd-path: add the usual ANSI sequences to --help text --- 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;