Merge pull request #3059 from lateralusX/jlorenss/win-x64-dyncall-gsharedvt-support
[mono.git] / mcs / tools / mod / mod.cs
1 // Author:  John Luke  <jluke@cfl.rr.com>
2
3 using System;
4 using Monodoc;
5
6 namespace Monodoc
7 {
8         public class Mod
9         {
10                 static void Main (string[] args)
11                 {
12                         if (args.Length < 1)
13                         {
14                                 Console.WriteLine ("Usage: mod.exe Url");
15                                 return;
16                         }
17                         bool index =  (args.Length == 2);
18                         
19
20                         RootTree help_tree = RootTree.LoadTree ();
21                         if (index){
22                                 Console.WriteLine ("Building index");
23                                 RootTree.MakeIndex ();
24                                 return;
25                         }
26                         Node n;
27                         Console.WriteLine (help_tree.RenderUrl (args[0], out n));
28                 }
29         }
30 }