From e6408637699f6cae91fc1505926ce7eca4f414ca Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 19 Apr 2022 13:55:12 +0200 Subject: add support for --version option --- src/hydrilla/builder/build.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/hydrilla/builder/build.py') 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): """""" build = Build(Path(srcdir), Path(index_json)) -- cgit v1.2.3