getopts - parse shell function option arguments.
getopts optstring name [argument ...]
getopts is a POSIX regular builtin provided by Rush. Parse shell function option arguments.
This page summarizes the builtin in Rush documentation. POSIX is the normative reference for detailed portable behavior.
See the POSIX definition for command-specific status rules. Usage errors generally return a non-zero status.
rush-builtins(7), POSIX Shell Command Language.