help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling getopt for option without optional argument value


From: Dennis Williamson
Subject: Re: Handling getopt for option without optional argument value
Date: Fri, 23 Jul 2021 14:14:02 -0500

On Fri, Jul 23, 2021, 1:43 PM Greg Wooledge <greg@wooledge.org> wrote:

>
>
> The "-xyz to -x -y -z" unrolling that getopt does is fundamentally
> incompatible with the -findopts option style.  There's no way to tell
> whether -bar is meant to be one option, or three options.
>

The only way this could be handled would be to check for long option
matches first then unroll the ones that didn't have matches. Still prone to
ambiguities, errors and confusion.

>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]