// See https://aka.ms/new-console-template for more information using System; using mDoc; class mDocMain{ static int Main(string[] args) { Console.WriteLine("mdoc"); string usage = "mdoc [options] "; // check runtime parameters if (args.Length < 2) { Console.WriteLine("mdoc needs 2 arguments."); return 1; } string opts; string file = args[0]; string template = args[1]; // define options bool verbose = false; try{ if (args.Length == 3) { opts = args[0]; file = args[1]; template = args[2]; // check options if (opts[0] != '-') throw new ApplicationException("Options have to start with an '-'."); for (int i=1; i