argparse already does this via add_argument kwargs `required`.