mirror of https://github.com/MISP/PyTaxonomies
18 lines
572 B
Python
18 lines
572 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import argparse
|
|
from pytaxonomies import Taxonomies
|
|
|
|
if __name__ == '__main__':
|
|
argParser = argparse.ArgumentParser(description='Use MISP taxonomies')
|
|
argParser.add_argument('-a', '--all', action='store_true', help='Print all taxonomies as machine tags')
|
|
argParser.add_argument('-l', '--local', default=None, help='Use local manifest file.')
|
|
args = argParser.parse_args()
|
|
if args.local:
|
|
t = Taxonomies(manifest_path=args.local)
|
|
else:
|
|
t = Taxonomies()
|
|
if args.all:
|
|
print(t)
|