zsh-users
 help / color / mirror / code / Atom feed
* zoptargs usage to place multiple values into an array
@ 2022-09-28 22:01 Zach Riggle
  2022-09-29 22:54 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Zach Riggle @ 2022-09-28 22:01 UTC (permalink / raw)
  To: Zsh Users

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-29 22:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 22:01 zoptargs usage to place multiple values into an array Zach Riggle
2022-09-29 22:54 ` Bart Schaefer

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).