summaryrefslogtreecommitdiff
path: root/src/portable/portablectl.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-01-30 14:13:04 +0000
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-31 13:14:02 +0900
commitbc556335b1c568c98688cc1f586b5f753fcddac6 (patch)
tree2f9336fb6ea885d672e8c0e23300a448a554ce02 /src/portable/portablectl.c
parent16455ee2b1853238cf0e936735ff92e690a20253 (diff)
downloadsystemd-bc556335b1c568c98688cc1f586b5f753fcddac6.tar.gz
tree-wide: Drop custom formatting for print() help messages
I think this formatting was originally used because it simplified adding new options to the help messages. However, these days, most tools their help message end with "\nSee the %s for details.\n" so the final line almost never has to be edited which eliminates the benefit of the custom formatting used for printf() help messages. Let's make things more consistent and use the same formatting for printf() help messages that we use everywhere else. Prompted by https://github.com/systemd/systemd/pull/18355#discussion_r567241580
Diffstat (limited to 'src/portable/portablectl.c')
-rw-r--r--src/portable/portablectl.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c
index 457170e684..0b329134de 100644
--- a/src/portable/portablectl.c
+++ b/src/portable/portablectl.c
@@ -946,12 +946,11 @@ static int help(int argc, char *argv[], void *userdata) {
" --now Immediately start/stop the portable service after\n"
" attach/before detach\n"
" --no-block Don't block waiting for attach --now to complete\n"
- "\nSee the %s for details.\n"
- , program_invocation_short_name
- , ansi_highlight()
- , ansi_normal()
- , link
- );
+ "\nSee the %s for details.\n",
+ program_invocation_short_name,
+ ansi_highlight(),
+ ansi_normal(),
+ link);
return 0;
}