summaryrefslogtreecommitdiff
path: root/src/hydrilla/builder/build.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-04-19 13:55:12 +0200
committerWojtek Kosior <koszko@koszko.org>2022-04-19 14:02:02 +0200
commite6408637699f6cae91fc1505926ce7eca4f414ca (patch)
tree89ca14b159ef5e541dc5a05c11615e305ae1ff13 /src/hydrilla/builder/build.py
parent2938a9d10e5464132b51cc95cf0e9d3ee38c01fd (diff)
downloadhydrilla-builder-e6408637699f6cae91fc1505926ce7eca4f414ca.tar.gz
hydrilla-builder-e6408637699f6cae91fc1505926ce7eca4f414ca.zip
add support for --version option
Diffstat (limited to 'src/hydrilla/builder/build.py')
-rw-r--r--src/hydrilla/builder/build.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py
index 8e78764..5d5bbf8 100644
--- a/src/hydrilla/builder/build.py
+++ b/src/hydrilla/builder/build.py
@@ -404,6 +404,9 @@ dir_type = click.Path(exists=True, file_okay=False, resolve_path=True)
help=_('path_instead_of_index_json'))
@click.option('-d', '--dstdir', type=dir_type, required=True,
help=_('built_package_files_destination'))
+@click.version_option(version=_version.version, prog_name='Hydrilla builder',
+ message=_('%(prog)s_%(version)s_license'),
+ help=_('version_printing'))
def perform(srcdir, index_json, dstdir):
"""<this will be replaced by a localized docstring for Click to pick up>"""
build = Build(Path(srcdir), Path(index_json))