You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add a parameter or option that would disable the range output in the help message when using type click.IntRange. It looks like it was introduced as a fix and is always present, but in the expected behavior it seemed to indicate some desire to be able to toggle that on or off as needed. Maybe I'm misreading that though.
For example, I'm using count to set a log level / increase verbosity and I want to have a min/max range that I can specify, but I don't need it display the range. I'm OK with it silently defaulting to whatever the min / max are for the application in this case.
Ideally I would be able to set something like type=click.IntRange(0, 3 clamp=True, show_range=False) like in the original issue to hide that as needed.
Thanks!
The text was updated successfully, but these errors were encountered:
Eventually, sure. Rather than continuing to add special cases though, this should be part of the help formatter refactor that needs to happen. An option should be able to collect a set of extra fields to display after its help text, from its param type for example. Right now the option has a ton of special cases, including for IntRange, which is becoming unmanageable.
Related to #1525
Would it be possible to add a parameter or option that would disable the range output in the help message when using type
click.IntRange
. It looks like it was introduced as a fix and is always present, but in the expected behavior it seemed to indicate some desire to be able to toggle that on or off as needed. Maybe I'm misreading that though.For example, I'm using count to set a log level / increase verbosity and I want to have a min/max range that I can specify, but I don't need it display the range. I'm OK with it silently defaulting to whatever the min / max are for the application in this case.
Sample
Ideally I would be able to set something like
type=click.IntRange(0, 3 clamp=True, show_range=False)
like in the original issue to hide that as needed.Thanks!
The text was updated successfully, but these errors were encountered: