News for hackers. Stuff that matters.
Re:Argbash: Bash argument parsing code generator by rascul on Tuesday March 22, 2022 @12:31PM (#30768188)
> frustrated to find that the osx version of getopt does not support long options

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

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/