diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-11-06 21:55:13 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-06 21:55:13 +0100 |
commit | 73c306258b6e0e82cc977a8a5ce3e21c32ea8942 (patch) | |
tree | db9e2a71ef0d61e0b0e1aa66509b55021a92cedf /compiler/nim.nim | |
parent | 24902394f713ba540e5c26dc5585fdc70ec11853 (diff) | |
download | Nim-73c306258b6e0e82cc977a8a5ce3e21c32ea8942.tar.gz |
Nimscript: fixes #9246 [backport]
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r-- | compiler/nim.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim index 5f3347255..1c4dbd3be 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -54,7 +54,8 @@ proc processCmdLine(pass: TCmdLinePass, cmd: string; config: ConfigRef) = of cmdArgument: if processArgument(pass, p, argsCount, config): break if pass == passCmd2: - if optRun notin config.globalOptions and config.arguments.len > 0 and config.command.normalize != "run": + if {optRun, optWasNimscript} * config.globalOptions == {} and + config.arguments.len > 0 and config.command.normalize notin ["run", "e"]: rawMessage(config, errGenerated, errArgsNeedRunOption) proc handleCmdLine(cache: IdentCache; conf: ConfigRef) = |