Fix #3 - --version in dev mode fails

This commit is contained in:
Gabriel Augendre 2020-01-03 09:19:45 +01:00
parent 69596de7a3
commit 21fde6842a
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -29,7 +29,7 @@ CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
default=DEFAULT_CONFIG_FILENAME,
show_default=True,
)
@click.version_option()
@click.version_option(version=__import__("cleantoots").__version__)
@click.pass_context
def cli(ctx, config_dir, config_file):
"""