[X] 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.
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.