Do some crazy stuff with OPTIND to unbreak getopts interoperation.