Raise a DeprecationWarning when OptionInfo receives a value for is_flag and/or flag_value
TyperOption doesn't use flag_value anymore and its is_flag is now defined only by looking at whether or not main_type is bool
These parameters weren't actually functional (cf. https://github.com/fastapi/typer/discussions/873) and they weren't documented, so I don't think this should be breaking. But it's always difficult to say - users could be relying on unspecified internals... 🫤
Fixes #986
DeprecationWarning
whenOptionInfo
receives a value foris_flag
and/orflag_value
TyperOption
doesn't useflag_value
anymore and itsis_flag
is now defined only by looking at whether or notmain_type is bool
These parameters weren't actually functional (cf. https://github.com/fastapi/typer/discussions/873) and they weren't documented, so I don't think this should be breaking. But it's always difficult to say - users could be relying on unspecified internals... 🫤