/// <summary> /// Sets CommandLineFailure field if there is a parse failure /// </summary> public void ParseArgs(string[] args) { try { var parser = new CommandLineParser(args); SetupCommandLine(parser); if (parser.HelpRequested != null) { HelpRequested = true; } if (CommandAndArgs != null) { CommandLine = CommandLineUtilities.FormCommandLineFromArguments(CommandAndArgs, 0); } parser.CompleteValidation(); } catch (CommandLineParserException e) { CommandLineFailure = e; } }