

def writeExtras(self):
    '\n        Write out completion information for extra arguments appearing on the\n        command-line. These are extra positional arguments not associated\n        with a named option. That is, the stuff that gets passed to\n        Options.parseArgs().\n\n        @return: C{None}\n\n        @raises: ValueError: if C{Completer} with C{repeat=True} is found and\n            is not the last item in the C{extraActions} list.\n        '
    for (i, action) in enumerate(self.extraActions):
        descr = ''
        if action._descr:
            descr = action._descr
        if (action._repeat and (i != (len(self.extraActions) - 1))):
            raise ValueError('Completer with repeat=True must be last item in Options.extraActions')
        self.file.write(escape(action._shellCode('', usage._ZSH)))
        self.file.write(' \\\n')

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