

def getAction(self, longname):
    '\n        Return a zsh "action" string for the given argument\n        @return: C{str}\n        '
    if (longname in self.optActions):
        if callable(self.optActions[longname]):
            action = self.optActions[longname]()
        else:
            action = self.optActions[longname]
        return action._shellCode(longname, usage._ZSH)
    if (longname in self.paramNameToDefinition):
        return (':%s:_files' % (longname,))
    return ''

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/_shellcomp.py ZshArgumentsGenerator.getAction/original