From b30544549505019f5fc092c5d99fcb1cae1a44b1 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sun, 25 Jun 2017 14:49:47 +0200 Subject: misc: consolidate all --help option descriptions Now we are always using the same text also for commands which had still hardcoded descriptions or where we can't use the standard print_usage_help_options macro. Signed-off-by: Ruediger Meier --- sys-utils/chcpu.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'sys-utils/chcpu.c') diff --git a/sys-utils/chcpu.c b/sys-utils/chcpu.c index c0f568073..620aabfba 100644 --- a/sys-utils/chcpu.c +++ b/sys-utils/chcpu.c @@ -242,16 +242,18 @@ static void __attribute__((__noreturn__)) usage(void) fputs(USAGE_SEPARATOR, out); fputs(_("Configure CPUs in a multi-processor system.\n"), out); - puts(_( "\nOptions:\n" - " -h, --help print this help\n" - " -e, --enable enable cpus\n" - " -d, --disable disable cpus\n" - " -c, --configure configure cpus\n" - " -g, --deconfigure deconfigure cpus\n" - " -p, --dispatch set dispatching mode\n" - " -r, --rescan trigger rescan of cpus\n" - " -V, --version output version information and exit\n")); - + fputs(USAGE_OPTIONS, stdout); + fputs(_( + " -e, --enable enable cpus\n" + " -d, --disable disable cpus\n" + " -c, --configure configure cpus\n" + " -g, --deconfigure deconfigure cpus\n" + " -p, --dispatch set dispatching mode\n" + " -r, --rescan trigger rescan of cpus\n" + ), stdout); + print_usage_help_options(31); + + printf(USAGE_MAN_TAIL("chcpu(8)")); exit(EXIT_SUCCESS); } -- cgit v1.2.3-55-g7522