On Wed, Oct 31, 2007 at 04:01:48PM -0500, Mike Borella wrote:
> Michael Geng wrote:
> >Hi Mike,
> >
> >now that Genparse supports a quite universal usage() function I'm
> >thinking about removing the #mandatory directive because it provides
> >no extra functionality that can't be defined in a #usage section as
> >well. For example
> >
> >#mandatory xyz
> >
> >does the same as
> >
> >#usage_begin
> >usage: __PROGRAM_NAME__ __OPTIONS_SHORT__ xyz
> >__GLOSSARY__
> >#usage_end
> >
> >How important is the #mandatory directive to you?
> >
> >Michael
> >
>
> I don't know how many programs use mandatory but I would suggest phasing
> it out more slowly and/or providing a simple perl script that would
> modify old genparse files to replace #mandatory with #usage.
>
> I am in favor of getting rid of redundant features...to many software
> people are afraid to and as a result software is more complex than it
> needs to be.
>
> Thanks,
> Mike
>
> --
> Mike Borella
> http://www.borella.net/mike
So I will keep #mandatory for now but print a warning if it is used.
In the documentation I will mark it as deprecated.
Michael
|