]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setterm: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:50:29 +0000 (13:50 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:50:29 +0000 (13:50 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/setterm.c

index 905900e5f057570d35ae4ea87fc63f5d193b2421..69d258ce4a4dbefe2a9ce55c752ffd1a27c2e0b0 100644 (file)
@@ -672,49 +672,48 @@ usage(FILE *out) {
        if (out == stderr)
                warnx(_("Argument error."));
 
-       fprintf(out, _(
-               "\nUsage:\n"
-               " %s [options]\n"), program_invocation_short_name);
-
-       fprintf(out, _(
-       "\nOptions:\n"
-       "  [ -term terminal_name ]\n"
-       "  [ -reset ]\n"
-       "  [ -initialize ]\n"
-       "  [ -cursor [on|off] ]\n"
-       "  [ -repeat [on|off] ]\n"
-       "  [ -appcursorkeys [on|off] ]\n"
-       "  [ -linewrap [on|off] ]\n"
-       "  [ -default ]\n"
-       "  [ -foreground black|blue|green|cyan|red|magenta|yellow|white|default ]\n"
-       "  [ -background black|blue|green|cyan|red|magenta|yellow|white|default ]\n"
-       "  [ -ulcolor black|grey|blue|green|cyan|red|magenta|yellow|white ]\n"
-       "  [ -ulcolor bright blue|green|cyan|red|magenta|yellow|white ]\n"
-       "  [ -hbcolor black|grey|blue|green|cyan|red|magenta|yellow|white ]\n"
-       "  [ -hbcolor bright blue|green|cyan|red|magenta|yellow|white ]\n"
-       "  [ -inversescreen [on|off] ]\n"
-       "  [ -bold [on|off] ]\n"
-       "  [ -half-bright [on|off] ]\n"
-       "  [ -blink [on|off] ]\n"
-       "  [ -reverse [on|off] ]\n"
-       "  [ -underline [on|off] ]\n"
-       "  [ -store ]\n"
-       "  [ -clear [all|rest] ]\n"
-       "  [ -tabs [ tab1 tab2 tab3 ... ] ]      (tabn = 1-160)\n"
-       "  [ -clrtabs [ tab1 tab2 tab3 ... ] ]   (tabn = 1-160)\n"
-       "  [ -regtabs [1-160] ]\n"
-       "  [ -blank [0-60|force|poke] ]\n"
-       "  [ -dump   [1-NR_CONSOLES] ]\n"
-       "  [ -append [1-NR_CONSOLES] ]\n"
-       "  [ -file dumpfilename ]\n"
-       "  [ -msg [on|off] ]\n"
-       "  [ -msglevel [0-8] ]\n"
-       "  [ -powersave [on|vsync|hsync|powerdown|off] ]\n"
-       "  [ -powerdown [0-60] ]\n"
-       "  [ -blength [0-2000] ]\n"
-       "  [ -bfreq freqnumber ]\n"
-       "  [ -version ]\n"
-       "  [ -help ]\n"));
+       fputs(_("\nUsage:\n"), out);
+       fprintf(out,
+             _(" %s [options]\n"), program_invocation_short_name);
+
+       fputs(_("\nOptions:\n"), out);
+       fputs(_(" -term <terminal_name>\n"
+               " -reset\n"
+               " -initialize\n"
+               " -cursor <on|off>\n"
+               " -repeat <on|off>\n"
+               " -appcursorkeys <on|off>\n"
+               " -linewrap <on|off>\n"
+               " -default\n"
+               " -foreground <black|blue|green|cyan|red|magenta|yellow|white|default>\n"
+               " -background <black|blue|green|cyan|red|magenta|yellow|white|default>\n"
+               " -ulcolor <black|grey|blue|green|cyan|red|magenta|yellow|white>\n"
+               " -ulcolor <bright blue|green|cyan|red|magenta|yellow|white>\n"
+               " -hbcolor <black|grey|blue|green|cyan|red|magenta|yellow|white>\n"
+               " -hbcolor <bright blue|green|cyan|red|magenta|yellow|white>\n"
+               " -inversescreen <on|off>\n"
+               " -bold <on|off>\n"
+               " -half-bright <on|off>\n"
+               " -blink <on|off>\n"
+               " -reverse <on|off>\n"
+               " -underline <on|off>\n"
+               " -store >\n"
+               " -clear <all|rest>\n"
+               " -tabs < tab1 tab2 tab3 ... >      (tabn = 1-160)\n"
+               " -clrtabs < tab1 tab2 tab3 ... >   (tabn = 1-160)\n"
+               " -regtabs <1-160>\n"
+               " -blank <0-60|force|poke>\n"
+               " -dump   <1-NR_CONSOLES>\n"
+               " -append <1-NR_CONSOLES>\n"
+               " -file dumpfilename\n"
+               " -msg <on|off>\n"
+               " -msglevel <0-8>\n"
+               " -powersave <on|vsync|hsync|powerdown|off>\n"
+               " -powerdown <0-60>\n"
+               " -blength <0-2000>\n"
+               " -bfreq freqnumber\n"
+               " -version\n"
+               " -help\n"), out);
 
        fprintf(out, _("\nFor more information see lsblk(1).\n"));