How does argparse implement multiple options and must choose one?

def main():
    paser = argparse.ArgumentParser(
        description="rmlastfile.py"
    )
    paser.add_argument("--subdir", required=False, help="locate to logdir")
    paser.add_argument("--parentdir", required=False, help="locate to the parentdir of logdir\"s ")
    args = paser.parse_args()

usage: rmlastfile.py [- h] [--subdir SUBDIR] [--parentdir PARENTDIR]

rmlastfile.py

optional arguments:
-h,-- help show this help message and exit
-- subdir SUBDIR locate to logdir
-- parentdir PARENTDIR locate to the parentdir of logdir"s

how do I implement these two parameters-- subdir-- parentdir at least one of which is a required required?

Jul.07,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39404-2c163.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39404-2c163.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?