Skip to content

Commit 6772340

Browse files
committed
feat: print the IGA version number in the debug log
1 parent aab6bcf commit 6772340

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iga/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import sys
1919
from sidetrack import set_debug, log
2020

21+
from iga import __version__
2122
from iga.exit_codes import ExitCode
2223
from iga.exceptions import GitHubError, InvenioRDMError, RecordNotFound
2324
from iga.github import (
@@ -107,6 +108,7 @@ def _read_param_value(ctx, param, value, env_var, thing, required=True):
107108
If the value is "help", this function prints help text and causes the
108109
program to exit.
109110
'''
111+
log(f'>>> This is IGA version {__version__} <<<')
110112
if ctx.params.get('url_or_tag') == 'help':
111113
_print_help_and_exit(ctx)
112114
elif value:

0 commit comments

Comments
 (0)