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();