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

How to return an error when an option is not seen with zparseopts?



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



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