From 5ad53f8f100471c1274cd7b942b485e6af435d66 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 26 Jul 2018 13:38:20 -0700 Subject: --extcap-version requires = if it has an argument. The version argument to --extcap-version is optional, and some versions of getopt_long() require, for a flag whose argument is optional, that the argument be supplied as --flag=value, not --flag value. Change-Id: I5e34132d8bb729b845ac75ff94d6d548c1c35a3d Reviewed-on: https://code.wireshark.org/review/28864 Reviewed-by: Guy Harris --- docbook/wsdg_src/WSDG_chapter_capture.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docbook/wsdg_src/WSDG_chapter_capture.asciidoc b/docbook/wsdg_src/WSDG_chapter_capture.asciidoc index 1c1a437b47..8555c16bd1 100644 --- a/docbook/wsdg_src/WSDG_chapter_capture.asciidoc +++ b/docbook/wsdg_src/WSDG_chapter_capture.asciidoc @@ -126,14 +126,14 @@ This call must print the existing interfaces for this extcap and must return 0. The output must conform to the grammar specified for extcap, and it is specified in the doc/extcap.4 generated man page (in the build dir). -Since Wireshark 2.9 this call is extended with `--extcap-version x.x`, which will +Since Wireshark 2.9 this call is extended with `--extcap-version=x.x`, which will allways represent the calling Wireshark's version information. This can be used to change behavior depending on the Wireshark version in question. .Example call for interface query [source,bash] ---- -$ extcap_examply.py --extcap-interfaces --extcap-version 3.0 +$ extcap_examply.py --extcap-interfaces --extcap-version=3.0 extcap {version=1.0}{help=Some help url} interface {value=example1}{display=Example interface 1 for extcap} interface {value=example2}{display=Example interface 2 for extcap} -- cgit v1.2.3