def METHOD_NAME(p, parent_d):
    parsers = p()._actions[-1].choices
    if parsers:
        for p_name in parsers.keys():
            d = {'name': p_name, 'options': [], 'help': parsers[p_name].description}
            for ddd in _export_parser_args(
                lambda *x: p()._actions[-1].choices[p_name], type_as_str=True
            ):
                d['options'].append(ddd)
            if not d['options']:
                d['methods'] = []
                METHOD_NAME(lambda *x: parsers[p_name], d)
            parent_d['methods'].append(d)