Replace optparse with argparse.