add --version option

This commit is contained in:
Manuel Barkhau 2018-12-09 18:06:28 +01:00
parent c247310dc4
commit 9d3b4c2d10

View file

@ -57,6 +57,8 @@ def _init_logging(verbose: int = 0) -> None:
@click.group()
@click.version_option()
@click.help_option()
@click.option('-v', '--verbose', count=True, help="Control log level. -vv for debug level.")
def cli(verbose: int = 0):
"""Automatically update PyCalVer version strings on python projects."""