summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/main.nim')
-rwxr-xr-xcompiler/main.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index a56b12ebb..811eb7675 100755
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -227,7 +227,7 @@ proc MainCommand =
     gCmd = cmdPretty
     wantMainModule()
     CommandPretty()
-  of "doc": 
+  of "doc":
     gCmd = cmdDoc
     LoadConfigs(DocConfig)
     wantMainModule()
@@ -242,6 +242,10 @@ proc MainCommand =
     LoadConfigs(DocTexConfig)
     wantMainModule()
     CommandRst2TeX()
+  of "buildindex":
+    gCmd = cmdDoc
+    LoadConfigs(DocConfig)
+    CommandBuildIndex()
   of "gendepend": 
     gCmd = cmdGenDepend
     wantMainModule()