From 923901257bd1bce9a0b0118f6503c882cea98bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Aulery?= Date: Thu, 4 Jul 2013 00:30:12 +0200 Subject: Ensure consistency between the manpage and the output of the -h option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mention -timeout option in manpage. Signed-off-by: Stéphane Aulery Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith --- man/xvidtune.man | 6 ++++++ xvidtune.c | 4 ++-- 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 ] [-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 Set testmode timeout in seconds\n"); exit(1); } -- cgit v1.2.3