macOS / binaries /

getopt

/usr/bin/getopt
Parse command options

The getopt utility is used to break up options in command lines for easy parsing by shell procedures, and to check for legal options.

source: man