Wireshark-commits: [Wireshark-commits] master 9ce5ca5: extcap: Catch unknown arguments to fix space

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 13 Oct 2014 18:48:38 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=9ce5ca581d30074c2c02eca0f51dbe840bf9411b
Submitter: Pascal Quantin (pascal.quantin@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

9ce5ca5 by Roland Knall (roland.knall@xxxxxxxxxxxxxxxxx):

    extcap: Catch unknown arguments to fix spaces
    
     - If boolflags are being used, an extra space is added
       to the call of the extcap filter. This leads to the
       argumentparser of python to exit with an error-code,
       and the extcap filter will not start. This patch instead
       catches the unknown arguments and prints them on stdout,
       as well as running the dissection with the rest of the
       arguments list.
    
       Basically this is a work-around, for a behaviour not
       yet fixed in extcap, but it stabilizes the usage of the demo
    
    Change-Id: I7589292692b0b3c839909fd09d62a4714cbe869e
    Reviewed-on: https://code.wireshark.org/review/4638
    Reviewed-by: Roland Knall <rknall@xxxxxxxxx>
    Reviewed-by: Tomasz Moń <desowin@xxxxxxxxx>
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    

Actions performed:

    from  631834f   IPv6: use proto_tree_add_item for IPv6 Routing Header Next and Length
    adds  9ce5ca5   extcap: Catch unknown arguments to fix spaces


Summary of changes:
 doc/extcap_example.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)