summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Aulery <lkppo@free.fr>2013-07-04 00:30:12 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-06 08:57:46 -0700
commit923901257bd1bce9a0b0118f6503c882cea98bb4 (patch)
tree0d77eb72ba5fe79710623a9a288cc7773b7690ed
parentbc468c7e448131237b86ef52270af31b677e61e6 (diff)
Ensure consistency between the manpage and the output of the -h option
Mention -timeout option in manpage. Signed-off-by: Stéphane Aulery <lkppo@free.fr> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--man/xvidtune.man6
-rw-r--r--xvidtune.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/man/xvidtune.man b/man/xvidtune.man
index 30379b6..413af99 100644
--- a/man/xvidtune.man
+++ b/man/xvidtune.man
@@ -39,6 +39,9 @@ xvidtune \- video mode tuner for __xservername__
.B -next
|
.B -unlock
+|
+.B -timeout
+.I sec
] [
.I \-toolkitoption
\&.\|.\|. ]
@@ -165,6 +168,9 @@ via hot-keys while it is running. If for some reason the program
did not exit cleanly and they are still disabled, the program can
be re-run with this option to re-enable the mode switching key
combinations.
+.TP 10
+.B \-timeout \fIsec\fP
+Set testmode timeout in seconds.
.SH SEE ALSO
.BR xrandr (__appmansuffix__),
.BR __xservername__ (__appmansuffix__),
diff --git a/xvidtune.c b/xvidtune.c
index 18b67d5..2f73bf1 100644
--- a/xvidtune.c
+++ b/xvidtune.c
@@ -1479,13 +1479,13 @@ PrevModeAction(Widget w, XEvent* e, String* vector, Cardinal* count)
static void
usage(void)
{
- fprintf(stderr, "Usage: %s [option]\n", progname);
+ fprintf(stderr, "Usage: %s [-show|-prev|-next|-unlock|-timeout <sec>] [-toolkitoption...]\n", progname);
fprintf(stderr, " where option is one of:\n");
fprintf(stderr, " -show Print current modeline to stdout\n");
fprintf(stderr, " -next Switch to next video mode\n");
fprintf(stderr, " -prev Switch to previous video mode\n");
fprintf(stderr, " -unlock Enable mode switch hot-keys\n");
- fprintf(stderr, " -timeout [seconds] Set testmode timeout in seconds,\n");
+ fprintf(stderr, " -timeout <sec> Set testmode timeout in seconds\n");
exit(1);
}