static int Main(string[] args) { if (args.Length > 0 && (args[0] == "--help" || args[0] == "-h" || args[0] == "/h" || args[0] == "-?" || args[0] == "/?" || args[0] == "--version")) { PrintUsage(); return(0); } else if (args.Length < 3) { PrintUsage("Too few arguments"); return(1); } else if (args.Length > 3) { PrintUsage("Too many arguments"); return(1); } var docFile = args[0]; var assemblyFile = args[1]; var outputFileRelative = args[2]; docFile = Path.GetFullPath(docFile); assemblyFile = Path.GetFullPath(assemblyFile); var outputFile = Path.GetFullPath(outputFileRelative); Console.WriteLine("Writing documentation to " + outputFileRelative); var parser = new DocParser(docFile, assemblyFile, outputFile); parser.ParseXml(); parser.GenerateDoc(); Console.WriteLine("Done."); return(0); }
static int Main(string[] args) { if (args.Length > 0 && ( args[0] == "--help" || args[0] == "-h" || args[0] == "/h" || args[0] == "-?" || args[0] == "/?" || args[0] == "--version")) { PrintUsage(); return 0; } else if (args.Length < 3) { PrintUsage("Too few arguments"); return 1; } else if (args.Length > 3) { PrintUsage("Too many arguments"); return 1; } var docFile = args[0]; var assemblyFile = args[1]; var outputFileRelative = args[2]; docFile = Path.GetFullPath(docFile); assemblyFile = Path.GetFullPath(assemblyFile); var outputFile = Path.GetFullPath(outputFileRelative); Console.WriteLine("Writing documentation to " + outputFileRelative); var parser = new DocParser(docFile, assemblyFile, outputFile); parser.ParseXml(); parser.GenerateDoc(); Console.WriteLine("Done."); return 0; }