From 21fde6842a3d9dd33765aec5905c4f56515fa449 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 3 Jan 2020 09:19:45 +0100 Subject: [PATCH] Fix #3 - --version in dev mode fails --- cleantoots/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleantoots/main.py b/cleantoots/main.py index 9741502..ce3834b 100644 --- a/cleantoots/main.py +++ b/cleantoots/main.py @@ -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): """