Use getopts.