def _getWorkerArguments(self):
        """
        Return a list of options to pass to distributed workers.
        """
        args = []
        for option in self._workerFlags:
            if self.get(option) is not None:
                if self[option]:
                    args.append("--%s" % (option,))
        for option in self._workerParameters:
            if self.get(option) is not None:
                args.extend(["--%s" % (option,), str(self[option])])
        return args

        Return a list of options to pass to distributed workers.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/scripts/trial.py