From 8599b566349db50f808c7387f0de658f37cf5fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 27 Jul 2016 15:22:46 +0200 Subject: [PATCH] Update script to support local path --- bin/pytaxonomies | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/pytaxonomies b/bin/pytaxonomies index 33244f0..f073827 100644 --- a/bin/pytaxonomies +++ b/bin/pytaxonomies @@ -6,8 +6,12 @@ from pytaxonomies import Taxonomies if __name__ == '__main__': 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() - if args.p: + if args.local: + t = Taxonomies(manifest_path=args.local) + else: t = Taxonomies() + if args.all: print(t)