Switch command line parsing over to argparse