GETOPTS(1)

NAME

getopts - parse shell function option arguments.

SYNOPSIS

getopts optstring name [argument ...]

DESCRIPTION

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.

EXIT STATUS

See the POSIX definition for command-specific status rules. Usage errors generally return a non-zero status.

SEE ALSO

rush-builtins(7), POSIX Shell Command Language.