Use argparse rather than old getopt