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

Re: Replacing getopts with zparseopts



* Bart Schaefer (Sun, 15 May 2011 11:00:05 -0700)
> On May 15,  4:34pm, Thorsten Kampe wrote:
> } Could someone help me to create the below simple construct with 
> } zparseopts and making sure that "-d" and "--debug", "-h" and "--help", 
> } and "-v" and "--verbose" refer to the same option?!
[...]
> For this simple a case, zparseopts doesn't really save you any effort;
> in fact it's probably a bit worse than getopts except that it handles
> the long option forms.

So zparseopts is not a "better getopts". So what do people use to be 
able to use (and parse) long options??

Thorsten



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