From 6243f8277c9173c8efe7a91ae4b45849855f0cbe Mon Sep 17 00:00:00 2001 From: Christian Studer Date: Wed, 21 Aug 2024 10:26:10 +0200 Subject: [PATCH] add: [misp_stix_converter] Global version argument added - This answers the request in #66 --- misp_stix_converter/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misp_stix_converter/__init__.py b/misp_stix_converter/__init__.py index 458359b..e4ed0e4 100644 --- a/misp_stix_converter/__init__.py +++ b/misp_stix_converter/__init__.py @@ -47,6 +47,10 @@ def _handle_return_message(traceback): def main(): parser = argparse.ArgumentParser(description='Convert MISP <-> STIX') + parser.add_argument( + '-v', '--version', action='version', + version=f'{parser.prog} {__version__}' + ) parser.add_argument( '--debug', action='store_true', help='Show errors and warnings' )