Re:Argbash: Bash argument parsing code generator
by 0xbadcafebee on Tuesday March 22, 2022 @01:01PM
(#30768612)
getopts is actually POSIX so all POSIX-compatible shells should have it. Looks like zsh does: https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Command...
For anyone new to parsing args with getopts, a guide like this might help: https://www.shellscript.sh/tips/getopts/
Probably best not to use getopt, but use getopts instead. In bash, getopts is a builtin. See the link below.
http://mywiki.wooledge.org/ComplexOptionParsing#util-linux.2...