summaryrefslogtreecommitdiff
path: root/src/timedate
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-08 18:19:59 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-08 18:21:27 +0200
commitce2529b4a26feba7b3b4a9802acccb0c002792bc (patch)
treef9342a757ad712a9effc78fee5bb68b478032575 /src/timedate
parent9daa65783688428c2cb3614f4e902731cbcee2ce (diff)
downloadsystemd-ce2529b4a26feba7b3b4a9802acccb0c002792bc.tar.gz
systemd-ce2529b4a26feba7b3b4a9802acccb0c002792bc.tar.bz2
systemd-ce2529b4a26feba7b3b4a9802acccb0c002792bc.zip
Highlight the synopsis and summary in --help
This doesn't cover all the binaries, but I don't know how to script this, and I run out of steam ;)
Diffstat (limited to 'src/timedate')
-rw-r--r--src/timedate/timedatectl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c
index c5d4d198fe..2f9073c3dc 100644
--- a/src/timedate/timedatectl.c
+++ b/src/timedate/timedatectl.c
@@ -809,8 +809,8 @@ static int help(void) {
if (r < 0)
return log_oom();
- printf("%s [OPTIONS...] COMMAND ...\n\n"
- "Query or change system time and date settings.\n"
+ printf("%s%s [OPTIONS...] COMMAND ...\n\n"
+ "Query or change system time and date settings.%s\n"
"\nCommands:\n"
" status Show current time settings\n"
" show Show properties of systemd-timedated\n"
@@ -836,7 +836,9 @@ static int help(void) {
" -a --all Show all properties, including empty ones\n"
" --value When showing properties, only print the value\n"
"\nSee the %s for details.\n"
+ , ansi_highlight()
, program_invocation_short_name
+ , ansi_normal()
, link
);