add --no-fetch to 'pycalver show'

This commit is contained in:
Manuel Barkhau 2018-12-09 14:17:34 +01:00
parent bf7dfdcc70
commit 5287875271

View file

@ -110,7 +110,7 @@ def _update_cfg_from_vcs(cfg: config.Config, fetch: bool) -> config.Config:
@cli.command()
@click.option('-v', '--verbose' , count=True , help="Control log level. -vv for debug level.")
@click.option('-f', "--fetch/--no-fetch", is_flag=True, default=True)
@click.option('-f', "--fetch/--no-fetch", is_flag=True, default=True, help="Sync tags from remote origin.")
def show(verbose: int = 0, fetch: bool = True) -> None:
"""Show current version."""
_init_logging(verbose=max(_VERBOSE, verbose))