aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-09-28 14:19:48 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2019-09-28 14:19:48 +0100
commitad95e9fad686ae9388ca71560e8c07aa4e6c49c5 (patch)
tree0bfe710bd0476e3f059c34f1b4531d9a8e45a946
parentef8cd74e3c3f0bbaa459da707666ad2d28c02771 (diff)
added version func
-rw-r--r--datamaps/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/datamaps/main.py b/datamaps/main.py
index 10037e7..408b68f 100644
--- a/datamaps/main.py
+++ b/datamaps/main.py
@@ -23,6 +23,8 @@ from functools import partial
import click
import colorlog
+from click import version_option
+
from engine.adapters import cli as engine_cli
from engine.config import Config as engine_config
from engine.use_cases.parsing import MalFormedCSVHeaderException
@@ -47,6 +49,7 @@ class Config:
pass_config = click.make_pass_decorator(Config, ensure=True)
+@version_option()
@click.group()
@click.option("--verbose", is_flag=True)
@pass_config