Expected Behavior
Similar to the show_defaults=True parameter, options that have type IntRange should print the expected range values in the help text
@click.option('-c', '--count', required=True, type=click.IntRange(1, 100, show_range=True))
def set_count(count)
pass
>>> mycli set-count --help
Usage: mycli set-count [OPTIONS]
Set the target count
Options:
-c, --count INTEGER RANGE [1-100 inclusive, required]
Actual Behavior
-c, --count INTEGER RANGE [required]
Environment
- Python version: 3.7.3
- Click version: 7.0
Expected Behavior
Similar to the
show_defaults=Trueparameter, options that have type IntRange should print the expected range values in the help textActual Behavior
Environment