def make_action(additional_arg):


    class customAction(argparse.Action):

        def __call__(self, parser, args, values, option_string=None):
            pass
Python argparse custom actions with additional arguments passed