From b1a294c448582c5571fbf7c0d363357c88154016 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sun, 25 Jun 2017 00:19:50 +0200 Subject: misc: introduce print_usage_help_options() Consolidate --help and --version descriptions. We are now able to align them to the other options. We changed include/c.h. The rest of this patch was generated by sed, plus manually setting the right alignment numbers. We do not change anything but white spaces in the --help output. Signed-off-by: Ruediger Meier --- sys-utils/dmesg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys-utils/dmesg.c') diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index cd5da90f4..0db567bfa 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -306,8 +306,7 @@ static void __attribute__((__noreturn__)) usage(void) " [delta|reltime|ctime|notime|iso]\n" "Suspending/resume will make ctime and iso timestamps inaccurate.\n"), out); fputs(USAGE_SEPARATOR, out); - fputs(USAGE_HELP, out); - fputs(USAGE_VERSION, out); + print_usage_help_options(29); fputs(_("\nSupported log facilities:\n"), out); for (i = 0; i < ARRAY_SIZE(level_names); i++) fprintf(out, " %7s - %s\n", -- cgit v1.2.3-55-g7522