Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] zparseopts: allow omitting array



On Thu, Jan 2, 2025 at 4:22 PM dana <dana@xxxxxxx> wrote:
>
> it's always been an error if none of -a, -A, or at least one spec with =array
> is given to zparseopts. but i don't see why this needs to be the case.

I had always presumed that the requirement for an array was to prevent
people from making baffling mistakes.

> there
> are situations where you just don't care about storing the options. my
> previous message contains an example

You mean the test cases?  Or a more-previous message?

Anyway I think I'd prefer that the array be optional only when one of
-D or -F is present.  I'm undecided about -E.




Messages sorted by: Reverse Date, Date, Thread, Author