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 --- term-utils/setterm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'term-utils/setterm.c') diff --git a/term-utils/setterm.c b/term-utils/setterm.c index 8ab5b45d7..2878bdb96 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -418,8 +418,9 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" --powerdown [0-60] set vesa powerdown interval in minutes\n"), out); fputs(_(" --blength [0-2000] duration of the bell in milliseconds\n"), out); fputs(_(" --bfreq bell frequency in Hertz\n"), out); - fputs(_(" --version show version information and exit\n"), out); - fputs(_(" --help display this help and exit\n"), out); + printf( " --help %s\n", USAGE_OPTSTR_HELP); + printf( " --version %s\n", USAGE_OPTSTR_VERSION); + fprintf(out, USAGE_MAN_TAIL("setterm(1)")); exit(EXIT_SUCCESS); } -- cgit v1.2.3-55-g7522