summaryrefslogtreecommitdiffstats
path: root/src/busctl/busctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-10-28 14:04:05 +0100
committerLennart Poettering <lennart@poettering.net>2024-10-29 16:50:13 +0100
commit960b342dbfd5d214ebfaaefc25957a490bc44a97 (patch)
tree616c54f71ff057ca06e6eff208121e1167504ec5 /src/busctl/busctl.c
parentbusctl: add a testcase that definitely causes the timeout to trigger (diff)
downloadsystemd-960b342dbfd5d214ebfaaefc25957a490bc44a97.tar.xz
systemd-960b342dbfd5d214ebfaaefc25957a490bc44a97.zip
busctl: add the usual section highlighting to our --help texts
Diffstat (limited to '')
-rw-r--r--src/busctl/busctl.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/busctl/busctl.c b/src/busctl/busctl.c
index 7c2a2c1b00..047d655304 100644
--- a/src/busctl/busctl.c
+++ b/src/busctl/busctl.c
@@ -2455,9 +2455,9 @@ static int help(void) {
pager_open(arg_pager_flags);
- printf("%s [OPTIONS...] COMMAND ...\n\n"
- "%sIntrospect the D-Bus IPC bus.%s\n"
- "\nCommands:\n"
+ printf("%1$s [OPTIONS...] COMMAND ...\n\n"
+ "%5$sIntrospect the D-Bus IPC bus.%6$s\n"
+ "\n%3$sCommands%4$s:\n"
" list List bus names\n"
" status [SERVICE] Show bus service, process or bus owner credentials\n"
" monitor [SERVICE...] Show bus traffic\n"
@@ -2475,7 +2475,7 @@ static int help(void) {
" set-property SERVICE OBJECT INTERFACE PROPERTY SIGNATURE ARGUMENT...\n"
" Set property value\n"
" help Show this help\n"
- "\nOptions:\n"
+ "\n%3$sOptions:%4$s\n"
" -h --help Show this help\n"
" --version Show package version\n"
" --no-pager Do not pipe output into a pager\n"
@@ -2510,11 +2510,13 @@ static int help(void) {
" -N --limit-messages=NUMBER\n"
" Exit after receiving a number of matches while\n"
" monitoring\n"
- "\nSee the %s for details.\n",
+ "\nSee the %2$s for details.\n",
program_invocation_short_name,
- ansi_highlight(),
+ link,
+ ansi_underline(),
ansi_normal(),
- link);
+ ansi_highlight(),
+ ansi_normal());
return 0;
}