long options

David Relson relson at osagesoftware.com
Tue Dec 28 13:57:15 CET 2004


On Tue, 28 Dec 2004 13:41:01 +0100
Matthias Andree wrote:

> David Relson <relson at osagesoftware.com> writes:
> 
> > So you want to keep it the way it now is, with some options having
> > underscores and some having hyphens?  That's rather ugly (IMHO), not to
> > mention inconsistent.
> 
> I'm concerned about "tolerate underscores in the configuration file",
> when they are not tolerated on the command line - that would add a new
> inconsistency. At this time, command line options are a superset of
> configuration file options.

argc, argv processing is done by getopt_long() while config file options
are processed in process_config_option_as_arg().  The second function is
bogofilter's, hence can be case insensitive and can accept underscores
as hyphens.  To do the same thing for argc, argv processing would
require a different version of getopt_long(), or else processing the
argc, argv list (to convert strings to a standard form) before calling
the function.



More information about the bogofilter-dev mailing list