python click: argument coming from default or user
Advertisements How to tell whether an argument in click coming from the user or it’s the default value. For example: import click @click.command() @click.option(‘–value’, default=1, help=’a value.’) def hello(value): print(value) if __name__ == "__main__": hello() Now if I run python script.py –value 1, the value is now coming from user input as opposed to default… Read More python click: argument coming from default or user