]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setterm: fix 'bright' in usage, remove unnecessary error message
authorKarel Zak <kzak@redhat.com>
Tue, 20 May 2014 09:56:43 +0000 (11:56 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 20 May 2014 09:56:43 +0000 (11:56 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/setterm.c

index edaf6b85dcb2fc13bf58ab2c37ab4ad93f1d6765..5f59a8b2609075d53f59d374b04a5287bd9534ef 100644 (file)
@@ -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 <default|color>\n"), out);
        fputs(_(" --background <default|color>\n"), out);
-       fputs(_(" --ulcolor <bright> <color>\n"), out);
-       fputs(_(" --hbcolor <bright> <color>\n"), out);
+       fputs(_(" --ulcolor [bright] <color>\n"), out);
+       fputs(_(" --hbcolor [bright] <color>\n"), out);
        fputs(_(" <color>: black blue cyan green grey magenta red white yellow\n"), out);
        fputs(_(" --inversescreen <on|off>\n"), out);
        fputs(_(" --bold <on|off>\n"), out);