Skip to content

Commit

Permalink
feat: print the IGA version number in the debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed May 15, 2024
1 parent aab6bcf commit 6772340
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iga/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6772340

Please sign in to comment.