[PATCH xwud] Adds the missing option "-dumpheader" and improves the display option "-h"

Stéphane Aulery lkppo at free.fr
Mon Jul 1 16:31:53 PDT 2013


Signed-off-by: Stéphane Aulery <lkppo at free.fr>
---
 xwud.c |   21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/xwud.c b/xwud.c
index 9c6808c..32489a5 100644
--- a/xwud.c
+++ b/xwud.c
@@ -78,10 +78,23 @@ static void DumpHeader(const XWDFileHeader *header, const char *win_name);
 static void
 usage(void)
 {
-    fprintf(stderr, "usage: %s [-in <file>] [-noclick] [-geometry <geom>] [-display <display>]\n", progname);
-    fprintf(stderr, "            [-new] [-std <maptype>] [-raw] [-vis <vis-type-or-id>]\n");
-    fprintf(stderr, "            [-help] [-rv] [-plane <number>] [-fg <color>] [-bg <color>]\n");
-    fprintf(stderr, "            [-scale]\n");
+    fprintf(stderr, "Usage: %s [options]\n", progname);
+    fprintf(stderr, "Options:\n");
+    fprintf(stderr, "  -?, -h[elp]         Print this message\n");
+    fprintf(stderr, "  -bg <color>         Specifies color to display for the "0" bits\n");
+    fprintf(stderr, "  -display <display>  Specifies server to connect\n");
+    fprintf(stderr, "  -dumpheader         Print the XWD header information only\n");
+    fprintf(stderr, "  -fg <color>         Specifies color to display for the "1" bits\n");
+    fprintf(stderr, "  -geometry <geom>    Specifies the size and position of the window\n");
+    fprintf(stderr, "  -in <file>          Specifies the input file instead of stdin\n");
+    fprintf(stderr, "  -new                Forces creation of a new colormap\n");
+    fprintf(stderr, "  -noclick            Quit only with the keyboard\n");
+    fprintf(stderr, "  -plane <number>     Selects a single bit plane to display\n");
+    fprintf(stderr, "  -raw                Forces display with the colors of the screen\n");
+    fprintf(stderr, "  -rv                 Swaps foreground and background colors\n");
+    fprintf(stderr, "  -scale              Scales the image to the size of the window\n");
+    fprintf(stderr, "  -std <maptype>      Use the specified Standard Colormap\n");
+    fprintf(stderr, "  -vis <type-or-id>   Specifies a particular visual or visual class\n");
     exit(1);
 }
 
-- 
1.7.10.4



More information about the xorg-devel mailing list