I changed the sample in the click documentation and came up with this, I haven't used it before, or tested the code below.
@click.command()
@click.option('--help')
def help():
"""Simple program that greets NAME for a total of COUNT times."""
for x in range(count):
click.echo(get_help_message())
def get_help_message():
return "I AM A HELP MESSAGE!"
Maybe something like this doesn't work?
source
share