forked from ISPsystem/isp-maintenance
16 lines
260 B
Python
16 lines
260 B
Python
|
import click
|
||
|
|
||
|
from . import __version__
|
||
|
|
||
|
|
||
|
def print_version(ctx, param, value):
|
||
|
if not value or ctx.resilient_parsing:
|
||
|
return
|
||
|
click.echo(__version__)
|
||
|
ctx.exit()
|
||
|
|
||
|
|
||
|
def abort_if_false(ctx, param, value):
|
||
|
if not value:
|
||
|
ctx.abort()
|