Remove h flag, put usage() in the default case

Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
Quentin Rameau 2016-01-03 13:01:32 +01:00 committed by Christoph Lohmann
parent 105855240e
commit eb0ff62120
2 changed files with 3 additions and 7 deletions

View file

@ -5,7 +5,6 @@ tabbed \- generic tabbed interface
.B tabbed .B tabbed
.RB [ \-c ] .RB [ \-c ]
.RB [ \-d ] .RB [ \-d ]
.RB [ \-h ]
.RB [ \-s ] .RB [ \-s ]
.RB [ \-v ] .RB [ \-v ]
.RB [ \-g .RB [ \-g
@ -48,9 +47,6 @@ detaches tabbed from the terminal and prints its XID to stdout.
fill up tabbed again by spawning the provided command, when the last tab is fill up tabbed again by spawning the provided command, when the last tab is
closed. Mutually exclusive with -c. closed. Mutually exclusive with -c.
.TP .TP
.B \-h
will print the usage of tabbed.
.TP
.BI \-g " geometry" .BI \-g " geometry"
defines the X11 geometry string, which will fixate the height and width of defines the X11 geometry string, which will fixate the height and width of
tabbed. tabbed.

View file

@ -1289,7 +1289,7 @@ xsettitle(Window w, const char *str)
void void
usage(void) usage(void)
{ {
die("usage: %s [-dfhsv] [-g geometry] [-n name] [-p [s+/-]pos]\n" die("usage: %s [-dfsv] [-g geometry] [-n name] [-p [s+/-]pos]\n"
" [-r narg] [-o color] [-O color] [-t color] [-T color]\n" " [-r narg] [-o color] [-O color] [-t color] [-T color]\n"
" [-u color] [-U color] command...\n", argv0); " [-u color] [-U color] command...\n", argv0);
} }
@ -1355,9 +1355,9 @@ main(int argc, char *argv[])
die("tabbed-"VERSION", © 2009-2016 tabbed engineers, " die("tabbed-"VERSION", © 2009-2016 tabbed engineers, "
"see LICENSE for details.\n"); "see LICENSE for details.\n");
break; break;
default: /* FALLTHROUGH */ default:
case 'h':
usage(); usage();
break;
} ARGEND; } ARGEND;
if (argc < 1) { if (argc < 1) {