From 67723400fd55d0494ce2942c22892765bf9f35aa Mon Sep 17 00:00:00 2001 From: Michael Hucka Date: Wed, 15 May 2024 14:11:21 -0700 Subject: [PATCH] feat: print the IGA version number in the debug log --- iga/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iga/cli.py b/iga/cli.py index 140f91f..22990e3 100644 --- a/iga/cli.py +++ b/iga/cli.py @@ -18,6 +18,7 @@ import sys from sidetrack import set_debug, log +from iga import __version__ from iga.exit_codes import ExitCode from iga.exceptions import GitHubError, InvenioRDMError, RecordNotFound from iga.github import ( @@ -107,6 +108,7 @@ def _read_param_value(ctx, param, value, env_var, thing, required=True): If the value is "help", this function prints help text and causes the program to exit. ''' + log(f'>>> This is IGA version {__version__} <<<') if ctx.params.get('url_or_tag') == 'help': _print_help_and_exit(ctx) elif value: