Ethereal-dev: Re: [Ethereal-dev] ethereal --xxx xxx

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Tue, 07 Feb 2006 11:46:37 +0100
LEGO wrote:
Actually it's just adding a check for it in the autofoo stuff (and now
I know how to do it myself!) then take the code from gnu getopt and
add it to a file.c by itself that would get compiled only if
long_getopt doesn't exists in the target machine. Much like we do for
strptime.

On windows I don't know if we already have it... It would take me just
one buildbot run to find out :)
Just because you know how to do it really don't mean that you should do it that way (unless there's a good reason to do so).

First of all, adding a dependency to another lib for no real reason is a pretty bad idea IMO. Next, if you want to add long options to Ethereal, you'll complicate the current command line options as some of the options will use short syntax and other ones long.

Please remember to provide long options *for all* Ethereal command line options and not only "your own"! As that's the common way to provide command line options if long options are available.

And please also remember to change *all* appearances of the command line option documentation:
-Help output of the program
-User's Guide
-manpage
-...?
However I like this more... a little bit confusing to use the same -a
for capture stop triggers and the lua script but as we said we shoud
use kanji instead of our very limited latin alphabet for ethereal
command line options :).
Missunderstanding

Of course, you shouldn't use -a for lua scripting settings. But you probably should use a new letter for this and the same mechanism as we use with the -a letter already, namely a key:value pair.

Regards, ULFL