Console.Error.WriteLine ("mdoc: {0}", e.Message);
}
Console.Error.WriteLine ("See `mdoc help' for more information.");
+ Environment.ExitCode = 1;
}
}
{
subcommands = new Dictionary<string, MDocCommand> () {
{ "assemble", new MDocAssembler () },
+ { "dump-tree", new MDocTreeDumper () },
{ "export-html", new MDocToHtmlConverter () },
{ "export-msxdoc", new MDocToMSXDocConverter () },
{ "help", new MDocHelpCommand (this) },
return;
}
if (extra.Count == 0) {
- new MDocHelpCommand (this).Run (null);
+ Console.WriteLine ("Use `mdoc help' for usage.");
+ return;
}
if (showHelp) {
extra.Add ("--help");