From fb27f91cac9702ad1858d782dd840d5868547423 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 19 May 2014 22:21:14 +0100 Subject: setterm: recommend long options with double hyphen While the -version style options will work for next unknown number of years start moving towards user interface that has way of invoking long options as most of the other commands. Signed-off-by: Sami Kerola --- term-utils/setterm.c | 74 ++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'term-utils/setterm.c') diff --git a/term-utils/setterm.c b/term-utils/setterm.c index 5d8c0046d..d79e55e34 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -482,43 +482,43 @@ usage(FILE *out) { _(" %s [options]\n"), program_invocation_short_name); fputs(_("\nOptions:\n"), out); - fputs(_(" -term \n"), out); - fputs(_(" -reset\n"), out); - fputs(_(" -initialize\n"), out); - fputs(_(" -cursor \n"), out); - fputs(_(" -repeat \n"), out); - fputs(_(" -appcursorkeys \n"), out); - fputs(_(" -linewrap \n"), out); - fputs(_(" -default\n"), out); - fputs(_(" -foreground \n"), out); - fputs(_(" -background \n"), out); - fputs(_(" -ulcolor \n"), out); - fputs(_(" -ulcolor \n"), out); - fputs(_(" -hbcolor \n"), out); - fputs(_(" -hbcolor \n"), out); - fputs(_(" -inversescreen \n"), out); - fputs(_(" -bold \n"), out); - fputs(_(" -half-bright \n"), out); - fputs(_(" -blink \n"), out); - fputs(_(" -reverse \n"), out); - fputs(_(" -underline \n"), out); - fputs(_(" -store\n"), out); - fputs(_(" -clear \n"), out); - fputs(_(" -tabs (tabn = 1-160)\n"), out); - fputs(_(" -clrtabs (tabn = 1-160)\n"), out); - fputs(_(" -regtabs <1-160>\n"), out); - fputs(_(" -blank <0-60|force|poke>\n"), out); - fputs(_(" -dump <1-NR_CONSOLES>\n"), out); - fputs(_(" -append <1-NR_CONSOLES>\n"), out); - fputs(_(" -file dumpfilename\n"), out); - fputs(_(" -msg \n"), out); - fputs(_(" -msglevel <0-8>\n"), out); /* FIXME: klogctl console_log range is 1-8 */ - fputs(_(" -powersave \n"), out); - fputs(_(" -powerdown <0-60>\n"), out); - fputs(_(" -blength <0-2000>\n"), out); - fputs(_(" -bfreq freqnumber\n"), out); - fputs(_(" -version\n"), out); - fputs(_(" -help\n"), out); + fputs(_(" --term \n"), out); + fputs(_(" --reset\n"), out); + fputs(_(" --initialize\n"), out); + fputs(_(" --cursor \n"), out); + fputs(_(" --repeat \n"), out); + fputs(_(" --appcursorkeys \n"), out); + fputs(_(" --linewrap \n"), out); + fputs(_(" --default\n"), out); + fputs(_(" --foreground \n"), out); + fputs(_(" --background \n"), out); + fputs(_(" --ulcolor \n"), out); + fputs(_(" --ulcolor \n"), out); + fputs(_(" --hbcolor \n"), out); + fputs(_(" --hbcolor \n"), out); + fputs(_(" --inversescreen \n"), out); + fputs(_(" --bold \n"), out); + fputs(_(" --half-bright \n"), out); + fputs(_(" --blink \n"), out); + fputs(_(" --reverse \n"), out); + fputs(_(" --underline \n"), out); + fputs(_(" --store\n"), out); + fputs(_(" --clear \n"), out); + fputs(_(" --tabs (tabn = 1-160)\n"), out); + fputs(_(" --clrtabs (tabn = 1-160)\n"), out); + fputs(_(" --regtabs <1-160>\n"), out); + fputs(_(" --blank <0-60|force|poke>\n"), out); + fputs(_(" --dump <1-NR_CONSOLES>\n"), out); + fputs(_(" --append <1-NR_CONSOLES>\n"), out); + fputs(_(" --file dumpfilename\n"), out); + fputs(_(" --msg \n"), out); + fputs(_(" --msglevel <0-8>\n"), out); /* FIXME: klogctl console_log range is 1-8 */ + fputs(_(" --powersave \n"), out); + fputs(_(" --powerdown <0-60>\n"), out); + fputs(_(" --blength <0-2000>\n"), out); + fputs(_(" --bfreq freqnumber\n"), out); + fputs(_(" --version\n"), out); + fputs(_(" --help\n"), out); fprintf(out, USAGE_MAN_TAIL("setterm(1)")); -- cgit v1.2.3-55-g7522