diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-01-30 15:13:04 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-31 05:14:02 +0100 |
commit | bc556335b1c568c98688cc1f586b5f753fcddac6 (patch) | |
tree | 2f9336fb6ea885d672e8c0e23300a448a554ce02 /src/ac-power | |
parent | man: fix small issue in AllowedMemoryNodes description (diff) | |
download | systemd-bc556335b1c568c98688cc1f586b5f753fcddac6.tar.xz systemd-bc556335b1c568c98688cc1f586b5f753fcddac6.zip |
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/ac-power')
-rw-r--r-- | src/ac-power/ac-power.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ac-power/ac-power.c b/src/ac-power/ac-power.c index 9fabdb9e9f..905da4ad87 100644 --- a/src/ac-power/ac-power.c +++ b/src/ac-power/ac-power.c @@ -12,8 +12,8 @@ static void help(void) { "Report whether we are connected to an external power source.\n\n" " -h --help Show this help\n" " --version Show package version\n" - " -v --verbose Show state as text\n" - , program_invocation_short_name); + " -v --verbose Show state as text\n", + program_invocation_short_name); } static int parse_argv(int argc, char *argv[]) { |