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.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index dec393c50..26b3c9c4c 100755
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -300,7 +300,7 @@ proc MainCommand =
     #registerPass(rodwrite.rodwritePass())
     discard CompileModule(options.libpath / "system", {sfSystemModule})
     service.serve(proc () =
-      let projectFile = gProjectFull
+      let projectFile = mainCommandArg()
       discard CompileModule(projectFile, {sfMainModule})
     )
   else: rawMessage(errInvalidCommandX, command)