def processArgs(self, parsedArguments):
        """Update the Setup's config to reflect parsedArguments.

        parsedArguments - the result of an argparse parse action.
        """
        parsed = parsedArguments

        if 'stackLogfile' in parsed and parsed.stackLogfile:
            self.config.backgroundStackTraceLoopFilename = parsed.stackLogfile

        if 'memoryLogfile' in parsed and parsed.memoryLogfile:
            self.config.backgroundMemoryUsageLoopFilename = parsed.memoryLogfile

        if 'logging' in parsed and parsed.logging:
            self.config.setLoggingLevel(parsed.logging, parsed.background_logging)

        if 'target' in parsed and parsed.target:
            self.config.target = parsed.target

        if 'dataroot' in parsed and parsed.dataroot:
            path = os.path.expanduser(parsed.dataroot)
            self.config.setRootDataDir(path)

        if 'datarootsubdir' in parsed and parsed.datarootsubdir:
            path = os.path.join(self.config.rootDataDir, parsed.datarootsubdir)
            self.config.setRootDataDir(path)

        if 'baseport' in parsed and parsed.baseport:
            self.config.setAllPorts(parsed.baseport)

        self.parsedArguments = parsedArguments
dataset/ETHPy150Open ufora/ufora/ufora/config/Setup.py/Setup.processArgs/original