[PATCH 2/2 xvidtune] Ensure consistency between the manpage and the output of the -h option

Stéphane Aulery lkppo at free.fr
Wed Jul 3 15:30:12 PDT 2013


Mention -timeout option in manpage.

Signed-off-by: Stéphane Aulery <lkppo at free.fr>
---
 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 <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);
 }
 
-- 
1.7.10.4



More information about the xorg-devel mailing list