From 2832032772bb8d0a6ec9dda84c23db5d60a9f700 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 20 May 2014 11:56:43 +0200 Subject: [PATCH] setterm: fix 'bright' in usage, remove unnecessary error message Signed-off-by: Karel Zak --- term-utils/setterm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/term-utils/setterm.c b/term-utils/setterm.c index edaf6b85dc..5f59a8b260 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -398,9 +398,6 @@ static int parse_bfreq(char **argv, char *optarg, int *optind) static void __attribute__((__noreturn__)) usage(FILE *out) { - if (out == stderr) - warnx(_("argument error")); - fputs(USAGE_HEADER, out); fprintf(out, _(" %s [options]\n"), program_invocation_short_name); @@ -415,8 +412,8 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fputs(_(" --default\n"), out); fputs(_(" --foreground \n"), out); fputs(_(" --background \n"), out); - fputs(_(" --ulcolor \n"), out); - fputs(_(" --hbcolor \n"), out); + fputs(_(" --ulcolor [bright] \n"), out); + fputs(_(" --hbcolor [bright] \n"), out); fputs(_(" : black blue cyan green grey magenta red white yellow\n"), out); fputs(_(" --inversescreen \n"), out); fputs(_(" --bold \n"), out); -- 2.47.2