

def addAdditionalOptions(self):
    "\n        Add additional options to the optFlags and optParams lists.\n        These will be defined by 'opt_foo' methods of the Options subclass\n        @return: C{None}\n        "
    methodsDict = {
        
    }
    reflect.accumulateMethods(self.options, methodsDict, 'opt_')
    methodToShort = {
        
    }
    for name in methodsDict.copy():
        if (len(name) == 1):
            methodToShort[methodsDict[name]] = name
            del methodsDict[name]
    for (methodName, methodObj) in methodsDict.items():
        longname = methodName.replace('_', '-')
        if (longname in self.allOptionsNameToDefinition):
            continue
        descr = self.getDescription(longname)
        short = None
        if (methodObj in methodToShort):
            short = methodToShort[methodObj]
        reqArgs = methodObj.im_func.func_code.co_argcount
        if (reqArgs == 2):
            self.optParams.append([longname, short, None, descr])
            self.paramNameToDefinition[longname] = [short, None, descr]
            self.allOptionsNameToDefinition[longname] = [short, None, descr]
        else:
            self.optFlags.append([longname, short, descr])
            self.flagNameToDefinition[longname] = [longname, descr]
            self.allOptionsNameToDefinition[longname] = [short, None, descr]

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/_shellcomp.py ZshArgumentsGenerator.addAdditionalOptions/VarMisuse@244/377 `short`->`longname`