Alexandre Oliva wrote:
>
> On Nov 7, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
>
> > Yep, I'm in favor of removing all the --a* etc. it makes it uselessly
> > ambiguous, and short options are a better means to abbreviate. And
> > trying to support exact abbreviations, as is done in configure, is an
> > additional tedious maintenance nightmare.
>
> Agreed. But beware that this decision goes against the GNU Coding
> Standards.
>
> I guess we should have an m4sh (or m4sugar?) macro to expand:
>
> m4_case_longopt([foo])
>
> to
>
> --foo | --fo | --f
>
> and
>
> m4_case_longoptarg([foo])
>
> to
>
> --foo=* | --fo=* | --f=*
Such a macro would have to keep track of whether or not
there was a --fumble=xxx option, too. Of course, I *do*
have a shell script option processing generator that does
all this stuff automatically....