Sample code:
import click
@click.command
@click.option('-f/-F', 'var', default=True)
def main(var):
click.echo(var)
main()
Inside main()
function, how can I check if var
parameter got True
value by default, or it was passed by the user?