My goal is to have
myScript initwithout more run the class/actionInitAction.myScript foo /tmprun the class/actionFooActionusing the given "/tmp"
With argparse I made up this parser
parser = argparse.ArgumentParser(description="Look like GIT!")
parserCommands = parser.add_subparsers(title="Actions")
init_parser = parserCommands.add_argument('init', help='Set up')
destroy_parser = parserCommands.add_parser('destroy', help='Tear down')
Good till here but I want to bind init to the InitAction(argparse.Action). Something that works like action=InitAction but unfortunately this isn't allowed there.
Do you have a clue how to run InitAction when writing myScript.py init in the terminal?