fix: display user-data instead of user_data in version

This commit is contained in:
egarette@silique.fr 2025-04-27 10:30:00 +02:00
parent f5f85ba79f
commit aa5c2f773c

View file

@ -88,6 +88,7 @@ def _main():
from . import __version__
print(f'rougail-cli: {__version__}')
for step in ['structural', 'user_data', 'output']:
display_step = step.replace('_', '-')
for step_name in sorted(cmd_config.option(f'step.{step}').value.list()):
path = (
Path(__file__).parent.parent
@ -97,7 +98,7 @@ def _main():
if path.is_file():
try:
module = load_modules("rougail." + step + '_' + step_name, str(path))
print(f'rougail-{step}-{step_name}: {module.__version__}')
print(f'rougail-{display_step}-{step_name}: {module.__version__}')
except Exception as err:
pass
return