In Python's Click package I can define a default for an option:
@click.option("--count", default=1, help="Number of greetings.")
and I can specify that the default should be shown in the help:
@click.option("--count", default=1, help="Number of greetings.", show_default=True)
If I have many options
@click.option("--count-a", default=1, help="...")
@click.option("--count-b", default=2, help="...")
@click.option("--count-c", default=4, help="...")
.
.
.
how can I tell Click generically to always show defaults in the help (without explicitly adding show_default=True
to the parameter list of each individual option)?
show_default
for a specific option?@click.option(..., show_default=False)
doesn't appear to work. – Inge