Wireshark-bugs: [Wireshark-bugs] [Bug 11991] New: You have to put -e arguments before -T fields
Date: Sun, 10 Jan 2016 05:02:20 +0000
Bug ID 11991
Summary You have to put -e arguments before -T fields
Product Wireshark
Version Git
Hardware All
OS All
Status CONFIRMED
Severity Normal
Priority Low
Component TShark
Assignee bugzilla-admin@wireshark.org
Reporter guy@alum.mit.edu

Build Information:
TShark (Wireshark) 2.1.0 (v2.1.0rc0-1398-g189d859 from master)

Copyright 1998-2016 Gerald Combs <gerald@wireshark.org> and contributors.
License GPLv2+: GNU GPL version 2 or later
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with libpcap, without POSIX capabilities, with libz 1.2.5,
with GLib 2.36.0, with SMI 0.4.8, with c-ares 1.10.0, with Lua 5.2, with GnuTLS
2.12.19, with Gcrypt 1.5.0, with MIT Kerberos, with GeoIP.

Running on Mac OS X 10.10.5, build 14F1509 (Darwin 14.5.0), with locale
en_US.UTF-8, with libpcap version 1.5.3 - Apple version 47, with libz 1.2.5,
with GnuTLS 2.12.19, with Gcrypt 1.5.0.
Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (with SSE4.2)

Built using clang 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81).
--
If I put the -T fields argument before the -e arguments, TShark complains

tshark: "-Tfields" was specified, but no fields were specified with "-e".

If I put it *after* the -e arguments, it works.

That violates the Principle of Least Surprise.

It should really defer the checking until after *all* the arguments have been
seen.


You are receiving this mail because:
  • You are watching all bug changes.