Skip to content

Commit 6243f82

Browse files
committed
add: [misp_stix_converter] Global version argument added
- This answers the request in #66
1 parent 16879a4 commit 6243f82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

misp_stix_converter/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ def _handle_return_message(traceback):
4747

4848
def main():
4949
parser = argparse.ArgumentParser(description='Convert MISP <-> STIX')
50+
parser.add_argument(
51+
'-v', '--version', action='version',
52+
version=f'{parser.prog} {__version__}'
53+
)
5054
parser.add_argument(
5155
'--debug', action='store_true', help='Show errors and warnings'
5256
)

0 commit comments

Comments
 (0)