zsh-users
 help / Atom feed
* How to return an error when an option is not seen with zparseopts?
@ 2018-12-02 20:33 Peng Yu
  0 siblings, 0 replies; 1+ messages 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] 1+ messages in thread

only message in thread, back to index

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

zsh-users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox