Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to handle unknown options in zparseopts
- X-seq: zsh-users 9370
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: How to handle unknown options in zparseopts
- Date: Fri, 2 Sep 2005 19:20:23 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <1050902165400.ZM22636@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050831154454.GA122@DervishD> <1050902161402.ZM22534@xxxxxxxxxxxxxxxxxxxxxxx> <20050902163515.GA962@DervishD> <1050902165400.ZM22636@xxxxxxxxxxxxxxxxxxxxxxx>
Hi Bart :)
* Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> } set -- -a xyz
> } zparseopts -A array -- a::
> }
> } Does that mean that optional arguments must ALWAYS go in the same
> } word as the option?
> Yes, that's what I was trying to explain.
Then I have a problem even using the hybrid solution, because all
long options I plan to add to the script have arguments (non optional
ones, by the way), so zparseopts it's going to whine a lot ;)
Since most of the options are going to be short ones, I'll try to
parse long options manually or use GNU getopt (which I don't like
much, but...). Thanks for your help, Bart :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author