summaryrefslogtreecommitdiff
path: root/src/coredump
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/coredump
parent9daa65783688428c2cb3614f4e902731cbcee2ce (diff)
downloadsystemd-ce2529b4a26feba7b3b4a9802acccb0c002792bc.tar.gz
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/coredump')
-rw-r--r--src/coredump/coredumpctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/coredump/coredumpctl.c b/src/coredump/coredumpctl.c
index 6ce0c297d8..4b972481d9 100644
--- a/src/coredump/coredumpctl.c
+++ b/src/coredump/coredumpctl.c
@@ -146,8 +146,8 @@ static int help(void) {
if (r < 0)
return log_oom();
- printf("%s [OPTIONS...]\n\n"
- "List or retrieve coredumps from the journal.\n"
+ printf("%s%s [OPTIONS...]\n\n"
+ "List or retrieve coredumps from the journal.%s\n"
"\nCommands:\n"
" list [MATCHES...] List available coredumps (default)\n"
" info [MATCHES...] Show detailed information about one or more coredumps\n"
@@ -168,7 +168,9 @@ static int help(void) {
" -D --directory=DIR Use journal files from directory\n\n"
" -q --quiet Do not show info messages and privilege warning\n"
"\nSee the %s for details.\n"
+ , ansi_highlight()
, program_invocation_short_name
+ , ansi_normal()
, link
);