When short-circuiting the option parsing, the OPTIND must be adapted, too, so that the getopts processing loop is quit correctly.
For a start, this is basically an adapted version of tests/t2100-help.sh.