diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-10-08 18:19:59 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-10-08 18:21:27 +0200 |
commit | ce2529b4a26feba7b3b4a9802acccb0c002792bc (patch) | |
tree | f9342a757ad712a9effc78fee5bb68b478032575 /src/login | |
parent | networkctl: add missing dots in --help (diff) | |
download | systemd-ce2529b4a26feba7b3b4a9802acccb0c002792bc.tar.xz 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/login')
-rw-r--r-- | src/login/loginctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 4d11e68636..706a4e45fe 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -1280,8 +1280,8 @@ static int help(int argc, char *argv[], void *userdata) { if (r < 0) return log_oom(); - printf("%s [OPTIONS...] {COMMAND} ...\n\n" - "Send control commands to or query the login manager.\n" + printf("%s%s [OPTIONS...] {COMMAND} ...\n\n" + "Send control commands to or query the login manager.%s\n" "\nSession Commands:\n" " list-sessions List sessions\n" " session-status [ID...] Show session status\n" @@ -1329,7 +1329,9 @@ static int help(int argc, char *argv[], void *userdata) { " json, json-pretty, json-sse, json-seq, cat,\n" " with-unit)\n" "\nSee the %s for details.\n" + , ansi_highlight() , program_invocation_short_name + , ansi_normal() , link ); |