def parseArgs(self, argv):
self.config.configure(argv, doc=self.usage())<EOL>log.debug("<STR_LIT>", self.config)<EOL>if self.config.options.version:<EOL><INDENT>from nose import __version__<EOL>sys.stdout = sys.__stdout__<EOL>print("<STR_LIT>" % (os.path.basename(sys.argv[<NUM_LIT:0>]), __version__))<EOL>sys.exit(<NUM_LIT:0>)<EOL><DEDENT>if self.config.options.showPlugins:<EOL><INDENT>self.showPlugins()<EOL>sys.exit(<NUM_LIT:0>)<EOL><DEDENT>if self.testLoader is None:<EOL><INDENT>self.testLoader = defaultTestLoader(config=self.config)<EOL><DEDENT>elif isclass(self.testLoader):<EOL><INDENT>self.testLoader = self.testLoader(config=self.config)<EOL><DEDENT>plug_loader = self.config.plugins.prepareTestLoader(self.testLoader)<EOL>if plug_loader is not None:<EOL><INDENT>self.testLoader = plug_loader<EOL><DEDENT>log.debug("<STR_LIT>", self.testLoader)<EOL>if self.config.testNames:<EOL><INDENT>self.testNames = self.config.testNames<EOL><DEDENT>else:<EOL><INDENT>self.testNames = tolist(self.defaultTest)<EOL><DEDENT>log.debug('<STR_LIT>', self.defaultTest)<EOL>log.debug('<STR_LIT>', self.testNames)<EOL>if self.config.workingDir is not None:<EOL><INDENT>os.chdir(self.config.workingDir)<EOL><DEDENT>self.createTests()<EOL>
Parse argv and env and configure running environment.