#!/Users/toddjones/DevLeague/pyattck/venv/bin/python3import argparse

import argparse
from pyattck import Attck
attack = Attck()

def get_actor(act):
   for actor in attack.actors:
       if act == actor.name:
           print('This is the Actor Name:', actor.name)
           print('This is the Actor Techniques used:')
           for technique in actor.techniques:
               print('\t', technique.name)

def get_tool(tol):
   for tool in attack.tools:
       if tol == tool.name:
           print('This is the Tool used:', tool.name)
           print('Tool Technique used:')
           for technique in tool.techniques:
               print('\t', technique.name)

if __name__ == '__main__':

   parser = argparse.ArgumentParser()
   parser.add_argument('-actor', help='The actors name and actor technique:')
   parser.add_argument('-tool', help='The tools name and tool technique:')
   args = parser.parse_args()
   get_actor(args.actor)
   get_tool(args.tool)