summaryrefslogtreecommitdiff
path: root/gerbonara/cli.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-02-21 23:18:56 +0100
committerjaseg <git@jaseg.de>2023-02-21 23:18:56 +0100
commit866eafb4eb1648483877125e838af79cd6c156e5 (patch)
tree1bdd9a9a29b7e43b30e582043dd1d2e66e89fc88 /gerbonara/cli.py
parent16f1247fda50061faa95609493c773f4e769006e (diff)
downloadgerbonara-866eafb4eb1648483877125e838af79cd6c156e5.tar.gz
gerbonara-866eafb4eb1648483877125e838af79cd6c156e5.tar.bz2
gerbonara-866eafb4eb1648483877125e838af79cd6c156e5.zip
Add cli test infrastructure
Diffstat (limited to 'gerbonara/cli.py')
-rw-r--r--gerbonara/cli.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gerbonara/cli.py b/gerbonara/cli.py
index d24088e..845e44a 100644
--- a/gerbonara/cli.py
+++ b/gerbonara/cli.py
@@ -299,6 +299,7 @@ def transform(transform, units, output_format, inpath, outpath,
@cli.command()
+@click.option('--version', is_flag=True, callback=print_version, expose_value=False, is_eager=True)
@click.option('--command-line-units', type=Unit(), help='''Units for values given in --transform. Default:
millimeter''')
@click.option('--warnings', 'format_warnings', type=click.Choice(['default', 'ignore', 'once']), default='default',