Adds -r option to getopts.