Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 2473] Using GOptions instead of getopt

Date: Thu, 17 Apr 2008 04:35:55 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2473





--- Comment #1 from Andrew Feren <acferen@xxxxxxxxx>  2008-04-17 04:35:55 GMT ---
I started playing with this, but things got busy at work so I figured I'd
submit what I had and see what comments I get.

This patch doesn't do much more than replace getopt with GOptions processing. 
All the original options should work exactly as before, with the addition of
the new options.

GOptions has a lot of flexibility.  If we are going through the trouble of
changing from getopt it might be worthwhile to have more flexible commandline
options.

Some thoughts I had for capinfos while working on this patch:
1) specify units seperately 
Instead of data rate/bytes and data rate/bits.  There could be just data rate
with an other option to decide what units to use for display.
2) I'd like it if capinfos had an option to display easily to parse fields like
tshark
3) When I added the groups with GOption it seemed it might be useful have a
switch to display everything in each group.

Anyway just to get started I kept the current options.  I probably won't get
back to this for a few days so leave any comments and ideas.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.