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/resolve | |
parent | 9daa65783688428c2cb3614f4e902731cbcee2ce (diff) | |
download | systemd-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/resolve')
-rw-r--r-- | src/resolve/resolvectl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c index 59f312d55a..ec4bffacba 100644 --- a/src/resolve/resolvectl.c +++ b/src/resolve/resolvectl.c @@ -2523,10 +2523,10 @@ static int native_help(void) { if (r < 0) return log_oom(); - printf("%1$s [OPTIONS...] {COMMAND} ...\n" + printf("%s%s [OPTIONS...] {COMMAND} ...\n" "\n" "Send control commands to the network name resolution manager, or\n" - "resolve domain names, IPv4 and IPv6 addresses, DNS records, and services.\n" + "resolve domain names, IPv4 and IPv6 addresses, DNS records, and services.%s\n" "\nCommands:\n" " query HOSTNAME|ADDRESS... Resolve domain names, IPv4 and IPv6 addresses\n" " service [[NAME] TYPE] DOMAIN Resolve service (SRV)\n" @@ -2563,8 +2563,10 @@ static int native_help(void) { " (default: yes)\n" " --raw[=payload|packet] Dump the answer as binary data\n" " --legend=BOOL Print headers and additional info (default: yes)\n" - "\nSee the %2$s for details.\n" + "\nSee the %s for details.\n" + , ansi_highlight() , program_invocation_short_name + , ansi_normal() , link ); |