How to judge the Python Click command line module?

problem description

@ click.option how to add logical judgment?

related codes

for example:

@click.option("--label1")
@click.option("--label2")
@click.option("--label3")
def main_app_init(label1="", label2="", label3=""):
    pass

detailed description

how to implement, when label1 is a certain value or meets certain conditions, let it run and accept the input of label2, and be responsible for label3. In fact, it is how to realize the logical judgment and processing in the process of command line interaction.

May.14,2022
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-1b31df8-2bde3.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-1b31df8-2bde3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?