Код: Выделить всё
@click.option("--count", default=1, help="Number of greetings.")
Код: Выделить всё
@click.option("--count", default=1, help="Number of greetings.", show_default=True)
Код: Выделить всё
@click.option("--count-a", default=1, help="...")
@click.option("--count-b", default=2, help="...")
@click.option("--count-c", default=4, help="...")
.
.
.
Подробнее здесь: https://stackoverflow.com/questions/575 ... n-defaults