Switch to using argparse instead of sys.argv.