private static void Main (string[] args)
{
MDoc d = new MDoc ();
try {
d.Run (args);
}
catch (Exception e) {
if (debug) {
Console.Error.WriteLine ("mdoc: {0}", e.ToString ());
}
else {
Console.Error.WriteLine ("mdoc: {0}", e.Message);
}
Console.Error.WriteLine ("See `mdoc help' for more information.");
Environment.ExitCode = 1;
}
}