Port to argparse