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

zoptargs usage to place multiple values into an array



I know this is in the documentation, but what is the incantation to
zoptargs to permit multiple command line **values**?

Desired CLI:

        $ ./script.zsh --arg value1 --arg value2 --arg value3

Desired effect in script:

        declare -a arg=( value1 value2 value3 )

What's the appropriate zoptargs incantation to get this effect?

Zach Riggle




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