🐛 Fix getting callback from instance creation

This commit is contained in:
Sebastián Ramírez 2020-01-05 21:42:35 +01:00
parent d0ee82ba82
commit 6ccdbb8538

View file

@ -226,6 +226,7 @@ def get_command(typer_instance: Typer) -> click.Command:
click_install_param, click_show_param = get_install_completion_arguments()
if (
typer_instance.registered_callback
or typer_instance.info.callback
or typer_instance.registered_groups
or len(typer_instance.registered_commands) > 1
):