macOS
/ binaries
/
getopts
/usr/bin/getopts
Parse utility options
The
getopts
utility shall retrieve options and option-arguments from a list of parameters.
source:
man7.org