* How to return an error when an option is not seen with zparseopts?
@ 2018-12-02 20:33 Peng Yu
0 siblings, 0 replies; only message in thread
From: Peng Yu @ 2018-12-02 20:33 UTC (permalink / raw)
To: zsh-users
Hi,
Since -b is not an option specified, I'd like to have zparseopts fail.
But I don't see which option can do so. Could anybody show me? Thanks.
a_opt=(-a 'b')
set -- -b x - a b c
zparseopts -K a:=a_opt
declare -p a_opt
declare -p argv
--
Regards,
Peng
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-02 20:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-02 20:33 How to return an error when an option is not seen with zparseopts? Peng Yu
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).