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()