def getDescription(self, longname):
        #check if we have an alternate descr for this arg, and if so use it
        if longname in self.altArgDescr:
            return self.altArgDescr[longname]

        #otherwise we have to get it from the optFlags or optParams
        try:
            descr = self.optFlags_d[longname][1]
        except KeyError:
            try:
                descr = self.optParams_d[longname][2]
            except KeyError:
                descr = None

        if descr is not None:
            return descr

        # lets try to get it from the opt_foo method doc string if there is one
        longMangled = longname.replace('-', '_') # this is what t.p.usage does
        obj = getattr(self.options, 'opt_%s' % longMangled, None)
        if obj:
            descr = descrFromDoc(obj)
            if descr is not None:
                return descr

        return longname # we really ought to have a good description to use
Return the description to be used for this argument
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/zshcomp.py/ArgumentsGenerator.getDescription