diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-04-19 13:55:12 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-04-19 14:02:02 +0200 |
commit | e6408637699f6cae91fc1505926ce7eca4f414ca (patch) | |
tree | 89ca14b159ef5e541dc5a05c11615e305ae1ff13 /src/hydrilla/builder/build.py | |
parent | 2938a9d10e5464132b51cc95cf0e9d3ee38c01fd (diff) | |
download | hydrilla-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.py | 3 |
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)) |