Begin to use argparse instead of getopt.