def show_help(ctx, param, value):
    if (value and (not ctx.resilient_parsing)):
        if (not ctx.invoked_subcommand):
            echo(format_help(ctx.get_help()))
        else:
            echo(ctx.get_help(), color=ctx.color)
        ctx.exit()
def show_help(ctx, param, value):
    if (value and (not ctx.resilient_parsing)):
        if (not ctx.invoked_subcommand):
            echo(format_help(ctx.get_help()))
        else:
            echo(ctx.get_help(), color=ctx.color)
        ctx.exit()