diff --git a/doc/wireshark-filter.pod b/doc/wireshark-filter.pod index 7795b42e16..8d25495dd9 100644 --- a/doc/wireshark-filter.pod +++ b/doc/wireshark-filter.pod @@ -11,7 +11,7 @@ wireshark-filter - Wireshark display filter syntax and reference =head1 SYNOPSIS B [other options] -S<[ B<-Y> "display filter expression" ]> +S<[ B<-Y> "display filter expression" | b<--display-filter> "display filter expression" ]> B [other options] S<[ B<-Y> "display filter expression" ]> diff --git a/doc/wireshark.pod.template b/doc/wireshark.pod.template index 6affa68d79..eed53c66bb 100644 --- a/doc/wireshark.pod.template +++ b/doc/wireshark.pod.template @@ -47,7 +47,7 @@ S<[ B<-v> ]> S<[ B<-w> EoutfileE ]> S<[ B<-X> EeXtension optionE ]> S<[ B<-y> Ecapture link typeE ]> -S<[ B<-Y> EdisplaY filterE ]> +S<[ B<-Y> EdisplaY filterE | B<--display-filter> Edisplay filterE ]> S<[ B<-z> EstatisticsE ]> S<[ B<--enable-protocol> Eproto_nameE ]> S<[ B<--disable-protocol> Eproto_nameE ]> @@ -1008,6 +1008,26 @@ set, no time stamp types are listed. Change the interface's timestamp method. +=item --read-file EinfileE + +Same as -r option. + +=item --read-filter Eread filterE + +Same as -R option. + +=item --display-filter Edisplay filterE + +Same as -Y option. + +=item --verbose + +Same as -v option. + +=item --help + +Same as -h option. + =back =head1 INTERFACE diff --git a/docbook/wsug_src/WSUG_chapter_customize.adoc b/docbook/wsug_src/WSUG_chapter_customize.adoc index 1e47a46122..09b505d14d 100644 --- a/docbook/wsug_src/WSUG_chapter_customize.adoc +++ b/docbook/wsug_src/WSUG_chapter_customize.adoc @@ -36,7 +36,7 @@ are, simply enter the command _wireshark -h_ and the help information shown in .Help information available from Wireshark ==== ---- -Wireshark 2.1.0 (v2.1.0rc0-502-g328fbc0 from master) +Wireshark 3.1.1 (v3.1.1rc0-629-ge1dc9f82a63c) Interactively dump and analyze network traffic. See https://www.wireshark.org for more information. @@ -44,10 +44,9 @@ Usage: wireshark [options] ... [ ] Capture interface: -i name or idx of interface (def: first non-loopback) - -f packet filter in libpcap filter syntax or - predef:filtername - predefined filtername from GUI - -s packet snapshot length (def: 262144) - -p don’t capture in promiscuous mode + -f packet filter in libpcap filter syntax + -s packet snapshot length (def: appropriate maximum) + -p don't capture in promiscuous mode -k start capturing immediately (def: do nothing) -S update packet display when new packets are captured -l turn on automatic scrolling while -S is in use @@ -68,18 +67,21 @@ Capture output: -b ... duration:NUM - switch to next file after NUM secs filesize:NUM - switch to next file after NUM KB files:NUM - ringbuffer: replace after NUM files -RPCAP options: - -A : use RPCAP password authentication Input file: - -r set the filename to read from (no pipes or stdin!) + -r + --read-file set the filename to read from (no pipes or stdin!) Processing: - -R packet filter in Wireshark display filter syntax + -R + --read-filter + packet filter in Wireshark display filter syntax -n disable all name resolutions (def: all enabled) -N enable specific name resolution(s): "mnNtdv" -d ==, ... - "Decode As”, see the man page for details + "Decode As", see the man page for details Example: tcp.port==8888,http + --enable-protocol + enable dissection of proto_name --disable-protocol disable dissection of proto_name --enable-heuristic @@ -89,7 +91,9 @@ Processing: User interface: -C start with specified configuration profile - -Y start with the given display filter + -Y + --display-filter + start with the given display filter -g go to specified packet number after "-r" -J jump to the first packet matching the (display) filter @@ -104,12 +108,16 @@ Output: -w set the output filename (or '-' for stdout) Miscellaneous: - -h display this help and exit - -v display version info and exit + -h + --help display this help and exit + -v + --version display version info and exit -P : persconf:path - personal configuration files persdata:path - personal data files -o : ... override preference or recent setting -K keytab file to use for kerberos decryption + --display DISPLAY X display to use + --fullscreen start Wireshark in full screen ---- ==== diff --git a/ui/commandline.c b/ui/commandline.c index 167c7adf3a..54c061324f 100644 --- a/ui/commandline.c +++ b/ui/commandline.c @@ -114,11 +114,14 @@ commandline_print_usage(gboolean for_help_option) { #endif /*fprintf(output, "\n");*/ fprintf(output, "Input file:\n"); - fprintf(output, " -r set the filename to read from (no pipes or stdin!)\n"); + fprintf(output, " -r \n"); + fprintf(output, " --read-file set the filename to read from (no pipes or stdin!)\n"); fprintf(output, "\n"); fprintf(output, "Processing:\n"); - fprintf(output, " -R packet filter in Wireshark display filter syntax\n"); + fprintf(output, " -R \n"); + fprintf(output, " --read-filter \n"); + fprintf(output, " packet filter in Wireshark display filter syntax\n"); fprintf(output, " -n disable all name resolutions (def: all enabled)\n"); fprintf(output, " -N enable specific name resolution(s): \"mnNtdv\"\n"); fprintf(output, " -d %s ...\n", DECODE_AS_ARG_TEMPLATE); @@ -136,7 +139,9 @@ commandline_print_usage(gboolean for_help_option) { fprintf(output, "\n"); fprintf(output, "User interface:\n"); fprintf(output, " -C start with specified configuration profile\n"); - fprintf(output, " -Y start with the given display filter\n"); + fprintf(output, " -Y \n"); + fprintf(output, " --display-filter \n"); + fprintf(output, " start with the given display filter\n"); fprintf(output, " -g go to specified packet number after \"-r\"\n"); fprintf(output, " -J jump to the first packet matching the (display)\n"); fprintf(output, " filter\n"); @@ -153,14 +158,16 @@ commandline_print_usage(gboolean for_help_option) { fprintf(output, "\n"); fprintf(output, "Miscellaneous:\n"); - fprintf(output, " -h display this help and exit\n"); - fprintf(output, " -v display version info and exit\n"); + fprintf(output, " -h\n"); + fprintf(output, " --help display this help and exit\n"); + fprintf(output, " -v\n"); + fprintf(output, " --version display version info and exit\n"); fprintf(output, " -P : persconf:path - personal configuration files\n"); fprintf(output, " persdata:path - personal data files\n"); fprintf(output, " -o : ... override preference or recent setting\n"); fprintf(output, " -K keytab file to use for kerberos decryption\n"); #ifndef _WIN32 - fprintf(output, " --display DISPLAY X display to use\n"); + fprintf(output, " --display X display to use\n"); #endif fprintf(output, " --fullscreen start Wireshark in full screen\n");