public static void SetRadegastCommandLine(string[] args) { args = SetCogbotCommandLineOptions(args); if (HaveSetRadegastCmdLine) { return; } HaveSetRadegastCmdLine = true; ResizeThreadPools(); // Read command line options Radegast.CommandLine CommandLine = MainProgram.CommandLine = new Radegast.CommandLine(); CommandLineParser parser = new CommandLineParser(new CommandLineParserSettings(DLRConsole.Out)); TextWriter tw = new StringWriter(); if (!parser.ParseArguments(args, CommandLine, tw)) { // Environment.Exit(1); } }