Use argparse instead of getopt.