summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index e73654a4b..c80c9a873 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -299,6 +299,7 @@ proc mainCommand* =
     else:
       rawMessage(errInvalidCommandX, command)
   of "doc":
+    wantMainModule()
     gCmd = cmdDoc
     loadConfigs(DocConfig)
     commandDoc()
@@ -316,6 +317,7 @@ proc mainCommand* =
     loadConfigs(DocTexConfig)
     commandRst2TeX()
   of "jsondoc":
+    wantMainModule()
     gCmd = cmdDoc
     loadConfigs(DocConfig)
     wantMainModule()