Wireshark-dev: [Wireshark-dev] [PATCH] Add --display to command line help
From: Stephen Fisher <[email protected]>
Date: Wed, 12 Jul 2006 11:35:51 -0700
I have attached a patch to add the X11 --display= option (that GTK 
already handles for us) to the command line help:

>wireshark -h

<snip>

Miscellaneous:
  -h                       display this help and exit
  -v                       display version info and exit
  -o <name>:<value> ...    override preference or recent setting
  --display=DISPLAY        X display to use

(It is within an #ifndef _WIN32)


Steve

Index: gtk/main.c
===================================================================
--- gtk/main.c	(revision 18718)
+++ gtk/main.c	(working copy)
@@ -1234,6 +1234,9 @@
   fprintf(output, "  -h                       display this help and exit\n");
   fprintf(output, "  -v                       display version info and exit\n");
   fprintf(output, "  -o <name>:<value> ...    override preference or recent setting\n");
+#ifndef _WIN32
+  fprintf(output, "  --display=DISPLAY        X display to use\n");
+#endif
 
 #ifdef _WIN32
   destroy_console();