Using POSIX getopts instead of getopt.