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/network/networkctl.c | |
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/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index d624bce1db..5e8dce0b73 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -1749,8 +1749,8 @@ static int help(void) { if (r < 0) return log_oom(); - printf("%s [OPTIONS...]\n\n" - "Query and control the networking subsystem.\n" + printf("%s%s [OPTIONS...]\n\n" + "Query and control the networking subsystem.%s\n" "\nCommands:\n" " list [PATTERN...] List links\n" " status [PATTERN...] Show link status\n" @@ -1766,7 +1766,9 @@ static int help(void) { " -a --all Show status for all links\n" " -s --stats Show detailed link statics\n" "\nSee the %s for details.\n" + , ansi_highlight() , program_invocation_short_name + , ansi_normal() , link ); |