From 7e423a3a1f136ede404b7af40c96279e5a7c7940 Mon Sep 17 00:00:00 2001 From: Hadriel Kaplan Date: Wed, 19 Mar 2014 12:57:13 -0400 Subject: Add read_format extension to manual pages The -X read_format extension was added in code but in the manuals. Change-Id: I21692120229ef531671fc3db247809ace69d23b3 Reviewed-on: https://code.wireshark.org/review/742 Reviewed-by: Alexis La Goutte --- doc/tshark.pod | 8 ++++++-- doc/wireshark.pod.template | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/tshark.pod b/doc/tshark.pod index c195a87659..83b4222ecc 100644 --- a/doc/tshark.pod +++ b/doc/tshark.pod @@ -785,16 +785,20 @@ after printing the summary and/or details, if either are also being displayed. Specify an option to be passed to a B module. The eXtension option is in the form IB<:>I, where I can be: -B:I tells B to load the given script in addition to the +B:I tells B to load the given script in addition to the default Lua scripts. -BI:I tells B to pass the given argument +BI:I tells B to pass the given argument to the lua script identified by 'num', which is the number indexed order of the 'lua_script' command. For example, if only one script was loaded with '-X lua_script:my.lua', then '-X lua_script1:foo' will pass the string 'foo' to the 'my.lua' script. If two scripts were loaded, such as '-X lua_script:my.lua' and '-X lua_script:other.lua' in that order, then a '-X lua_script2:bar' would pass the string 'bar' to the second lua script, namely 'other.lua'. +B:I tells B to use the given file format to read in the +file (the file given in the B<-r> command option). Providing no I argument, or +an invalid one, will produce a file of available file formats to use. + =item -y Ecapture link typeE Set the data link type to use while capturing packets. The values diff --git a/doc/wireshark.pod.template b/doc/wireshark.pod.template index 2c93582afa..16d6766f73 100644 --- a/doc/wireshark.pod.template +++ b/doc/wireshark.pod.template @@ -611,6 +611,9 @@ will pass the string 'foo' to the 'my.lua' script. If two scripts were loaded, and '-X lua_script:other.lua' in that order, then a '-X lua_script2:bar' would pass the string 'bar' to the second lua script, namely 'other.lua'. +B:I tells B to use the given file format to read in the +file (the file given in the B<-r> command option). + B:I tells B to use the given description when capturing from standard input (B<-i ->). -- cgit v1.2.3