private static bool DoProcessOptions(GetOptions options) { bool processed = true; if (options.Has("-help")) { DoShowHelp(options); } else if (options.Has("-version")) { DoShowVersion(); } else if (options.Has("-usage")) { DoShowUsage(); } #if DEBUG else if (options.Has("-check-xml")) { CheckXml checker = new CheckXml(); checker.Check(); } else if (options.Has("-generate-html-violations")) { ViolationDatabase.Init(); HtmlViolations html = new HtmlViolations(); html.Write(options.Value("-generate-html-violations")); } else if (options.Has("-dump-strings")) { string assemblyPath = options.Operands[0]; DumpStrings.Dump(assemblyPath); } #endif else { processed = false; } return(processed); }
private static bool DoProcessOptions(GetOptions options) { bool processed = true; if (options.Has("-help")) DoShowHelp(options); else if (options.Has("-version")) DoShowVersion(); else if (options.Has("-usage")) DoShowUsage(); #if DEBUG else if (options.Has("-check-xml")) { CheckXml checker = new CheckXml(); checker.Check(); } else if (options.Has("-generate-html-violations")) { ViolationDatabase.Init(); HtmlViolations html = new HtmlViolations(); html.Write(options.Value("-generate-html-violations")); } else if (options.Has("-dump-strings")) { string assemblyPath = options.Operands[0]; DumpStrings.Dump(assemblyPath); } #endif else processed = false; return processed; }