summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-11-06 21:55:13 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-11-06 21:55:13 +0100
commit73c306258b6e0e82cc977a8a5ce3e21c32ea8942 (patch)
treedb9e2a71ef0d61e0b0e1aa66509b55021a92cedf /compiler/main.nim
parent24902394f713ba540e5c26dc5585fdc70ec11853 (diff)
downloadNim-73c306258b6e0e82cc977a8a5ce3e21c32ea8942.tar.gz
Nimscript: fixes #9246 [backport]
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index 6c8b0343e..853bfb4f6 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -265,6 +265,7 @@ proc mainCommand*(graph: ModuleGraph) =
     conf.cmd = cmdInteractive
     commandInteractive(graph)
   of "e":
+    incl conf.globalOptions, optWasNimscript
     commandEval(graph, mainCommandArg(conf))
   of "nop", "help":
     # prevent the "success" message: