'Return a list of options to pass to distributed workers.'

def _getWorkerArguments(self):

    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
