From 6a6876d508cd145b3ba0e409d93672340855728b Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Mar 07 2017 09:47:13 +0000 Subject: Add --version support if version is not passed in click.version_option(), click attempts to take it from setuptools. From local testing it is working. --- diff --git a/pagure_importer/app.py b/pagure_importer/app.py index 1e110e3..e9d8f27 100644 --- a/pagure_importer/app.py +++ b/pagure_importer/app.py @@ -6,6 +6,7 @@ REPO_PATH = tempfile.gettempdir() @click.group() +@click.version_option() def app(): pass