URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=58fe488822ef7e59b1f7e85f04d4a19876c39769
Submitter: Evan Huus (eapache@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
58fe488 by Hadriel Kaplan (hadrielk@xxxxxxxxx):
Lua: add ability for scripts loaded from command-line to be passed arguments
This change adds the ability to pass on to lua scripts loaded from the
command-line (tshark or wireshark) additional arguments supplied by the
command-line. This will help us in our testsuites, but also might be
useful for user-created scripts. The additional arguments are passed in
using the '-X' eXtension switch.
Change-Id: Ib94cdf1ffd194ca84692fee7816665e4ff95efbd
Reviewed-on: https://code.wireshark.org/review/156
Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
Tested-by: Evan Huus <eapache@xxxxxxxxx>
Actions performed:
from 1eeb33a Redesign of BGP ext-com in a separate function, alignement with RFC and IANA, use of items instead of add_text
adds 58fe488 Lua: add ability for scripts loaded from command-line to be passed arguments
Summary of changes:
doc/tshark.pod | 7 +++++
doc/wireshark.pod.template | 7 +++++
docbook/wsug_src/WSUG_chapter_customize.xml | 8 ++++++
epan/wslua/init_wslua.c | 35 +++++++++++++++++++-----
test/lua/script_args.lua | 36 +++++++++++++++++++++++++
test/suite-unittests.sh | 39 +++++++++++++++++++++++++++
6 files changed, 126 insertions(+), 6 deletions(-)
create mode 100755 test/lua/script_args.lua