Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zoptargs usage to place multiple values into an array
- X-seq: zsh-users 28162
- From: Zach Riggle <zachriggle@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: zoptargs usage to place multiple values into an array
- Date: Wed, 28 Sep 2022 17:01:27 -0500
- Archived-at: <https://zsh.org/users/28162>
- List-id: <zsh-users.zsh.org>
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