Click basics Flashcards
1
Q
define an option in Click, use the @click.option decorator
A
import click
@click.command()
@click.option(“–name”, default=”World”)
def hello(name):
click.echo(f”Hello, {name}!”)
if __name__ == “__main__”:
hello()
2
Q
A