Nimscript: fixes #9246 [backport]

This commit is contained in:
Andreas Rumpf 2018-11-06 21:55:13 +01:00
commit 73c306258b
5 changed files with 6 additions and 2 deletions

View file

@ -776,6 +776,7 @@ proc processArgument*(pass: TCmdLinePass; p: OptParser;
# nim filename.nims is the same as "nim e filename.nims":
if p.key.endswith(".nims"):
config.command = "e"
incl(config.globalOptions, optWasNimscript)
config.projectName = unixToNativePath(p.key)
config.arguments = cmdLineRest(p)
result = true