From 3342dab89581074922d89f8ab997d6ef033051a9 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sun, 13 Aug 2006 00:13:22 +0000 Subject: [PATCH] "bug" #1013: from Stephen Fisher add the X --display command line parameter to the documentation svn path=/trunk/; revision=18889 --- doc/wireshark.pod | 7 +++++++ gtk/main.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/doc/wireshark.pod b/doc/wireshark.pod index 55c9f349a6..a8472e0210 100644 --- a/doc/wireshark.pod +++ b/doc/wireshark.pod @@ -11,6 +11,7 @@ S<[ B<-b> Ecapture ring buffer optionE ] ...> S<[ B<-B> Ecapture buffer size (Win32 only)E ] > S<[ B<-c> Ecapture packet countE ]> S<[ B<-D> ]> +S<[ B<--display=>EX display to useE ] > S<[ B<-f> Ecapture filterE ]> S<[ B<-g> Epacket numberE ]> S<[ B<-h> ]> @@ -245,6 +246,12 @@ network capture must be run from an account with special privileges (for example, as root), then, if B is run with the B<-D> flag and is not run from such an account, it will not list any interfaces. +=item --display=EX display to useE + +Specifies the X display to use. A hostname and screen (otherhost:0.0) +or just a screen (:0.0) can be specified. This option is not available +under Windows. + =item -f Ecapture filterE Set the capture filter expression. diff --git a/gtk/main.c b/gtk/main.c index 8430a6a7c9..40d6d2bee3 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1234,6 +1234,9 @@ print_usage(gboolean print_ver) { fprintf(output, " -h display this help and exit\n"); fprintf(output, " -v display version info and exit\n"); fprintf(output, " -o : ... override preference or recent setting\n"); +#ifndef _WIN32 + fprintf(output, " --display=DISPLAY X display to use\n"); +#endif #ifdef _WIN32 destroy_console();