change in registration options

David Relson relson at osagesoftware.com
Fri Feb 28 03:20:13 CET 2003


At 06:09 PM 2/27/03, Dan Stromberg wrote:

> > > > '-U' has been suggested as a modifier to '-S' and '-N', so '-SU' would
> > > > unregister spam and '-NU' would unregister ham.
> > >
> > >This sounds reasonable, but can it be made getopt without breaking
> > >backward compatibility?
> >
> > getopt doesn't care if they're together or separate, i.e. "-NU" is the 
> same
> > as '-U -N'
>
>But can it have an option that both takes an argument, and doesn't take
>an argument?  IE, can "-N" mean something by itself, as well as "-NU"?
>In the getopt argument, you only have -N: and -N.

Single character options that don't take options are pretty flexible.  One 
can concatenate them or separate them.  To use real options, "-sN" is the 
same as "-s -N" and "-nS" is the same as "-n -S".





More information about the Bogofilter mailing list