<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_version(ctx: click.Context, _, value):
 """ Prints current version then exits """

    if not value or ctx.resilient_parsing:
        return

    print(__version__)
    sys.exit(0)