def writeOptions(self):
        """
        Write out zsh code for each option in this command
        @return: L{None}
        """
        optNames = list(self.allOptionsNameToDefinition.keys())
        optNames.sort()
        for longname in optNames:
            self.writeOpt(longname)

        Write out zsh code for each option in this command
        @return: L{None}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/_shellcomp.py