Control Errors by getopts
$OPTERR
controls if Bash displays errors generated by the getopts
builtin command. Value 1
enables the errors.
Links
BashSupport Pro is a Bash IDE with support for $OPTERR – try it now!
getopts
$OPTERR
controls if Bash displays errors generated by the getopts
builtin command. Value 1
enables the errors.