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
I'm @tiangolo or he asked me directly to create an issue here.
Issue Content
Typer's code base currently contains is_flag and flag_value parameters like Click does. However, the current behaviour is inconsistent with Click's behaviour, and not documented.
In discussion with @tiangolo, we've come to the conclusion that these parameters are pretty confusing overall to work with. There are essentially two defaults (one set in code, and one set by flag_value) and then an option to set an arbitrary value to something that is a "flag". We feel that any behaviour obtained by this combination of parameters can probably be achieved easily with some internal logic and more straightforward (and properly typed) options/arguments.
As such, we've decided to remove these options from the code base as they're not really functional right now anyway.
The text was updated successfully, but these errors were encountered:
Privileged issue
Issue Content
Typer's code base currently contains
is_flag
andflag_value
parameters like Click does. However, the current behaviour is inconsistent with Click's behaviour, and not documented.In discussion with @tiangolo, we've come to the conclusion that these parameters are pretty confusing overall to work with. There are essentially two defaults (one set in code, and one set by
flag_value
) and then an option to set an arbitrary value to something that is a "flag". We feel that any behaviour obtained by this combination of parameters can probably be achieved easily with some internal logic and more straightforward (and properly typed) options/arguments.As such, we've decided to remove these options from the code base as they're not really functional right now anyway.
The text was updated successfully, but these errors were encountered: