diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-26 13:38:20 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-26 20:39:14 +0000 |
commit | 5ad53f8f100471c1274cd7b942b485e6af435d66 (patch) | |
tree | 545bd490bd3990bd44cf512067a128f26e59a176 /docbook | |
parent | ab94f7ff716a7b192873ab951cc4600641af4c79 (diff) | |
download | wireshark-5ad53f8f100471c1274cd7b942b485e6af435d66.tar.gz wireshark-5ad53f8f100471c1274cd7b942b485e6af435d66.tar.bz2 wireshark-5ad53f8f100471c1274cd7b942b485e6af435d66.zip |
--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 <guy@alum.mit.edu>
Diffstat (limited to 'docbook')
-rw-r--r-- | docbook/wsdg_src/WSDG_chapter_capture.asciidoc | 4 |
1 files 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} |