mirror of https://github.com/MISP/PyTaxonomies
Update script to support local path
parent
da5d552a58
commit
8599b56634
|
@ -6,8 +6,12 @@ from pytaxonomies import Taxonomies
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
argParser = argparse.ArgumentParser(description='Use MISP taxonomies')
|
argParser = argparse.ArgumentParser(description='Use MISP taxonomies')
|
||||||
argParser.add_argument('-p', action='store_true', help='Print all 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()
|
args = argParser.parse_args()
|
||||||
if args.p:
|
if args.local:
|
||||||
|
t = Taxonomies(manifest_path=args.local)
|
||||||
|
else:
|
||||||
t = Taxonomies()
|
t = Taxonomies()
|
||||||
|
if args.all:
|
||||||
print(t)
|
print(t)
|
||||||
|
|
Loading…
Reference in New Issue