From 15e1cbe72d648b121ac41dc433f0354a3873262a Mon Sep 17 00:00:00 2001 From: Vilaboa Date: Tue, 7 May 2024 09:53:35 +0200 Subject: [PATCH] ADD cobertura para poder ejecutar la libcnmc como script aislado --- libcnmc/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcnmc/cli.py b/libcnmc/cli.py index 99aa3872..0a60b122 100644 --- a/libcnmc/cli.py +++ b/libcnmc/cli.py @@ -1222,3 +1222,6 @@ def version_command(ctx, opt, version): cnmc, cnmc_4666, cnmc_4667, cnmc_4_2015, cnmc_6181, cnmc_8_2021 ]) cli.params.append(click.Option(['--version'], is_flag=True, callback=version_command, expose_value=False, is_eager=True, help='Show the version')) + +if __name__ == '__main__': + cli()