def METHOD_NAME(self, ctx, cmd_name):
    ctx.invoked_default = None
    if cmd_name not in self.commands:
        click.echo(click.style(self.deprecation_message, fg="red"), err=True)
        ctx.invoked_default = self.default_cmd_name
    return super().METHOD_NAME(ctx, cmd_name)