getopt-long [was: -t output]

Gyepi SAM gyepi at praxis-sw.com
Thu Jul 31 05:26:57 CEST 2003


On Wed, Jul 30, 2003 at 09:03:14PM -0400, David Relson wrote:
> At 07:13 PM 7/30/03, Przemyslaw Brojewski wrote:
> 
> >> bogofilter --terse_format="%1.1c %f" --spamicity_tags="Yes,No,Unsure"
> >
> >If only it is possible to maintain list of config options and command
> >line options in one place, then why not. I'd hate to have those
> >things get out of sync.
> Over the years I've figured out several techniques for doing stuff like 
> that.  Typically I've defined some macros that give me different ways of 
> expanding a master list.

Another method I have used successfully is to maintain the list in text
format and use perl to parse it and output the appropriate c files.
If I were doing it again, however, I would use tools like autogen and gslgen and save
myself some trouble.  Requiring such tools would of developers should be OK, I figure.

-Gyepi




More information about the Bogofilter mailing list