From f115e40e6a5721b34d41d4ad58e47e194f0e7788 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 4 May 2020 02:27:59 -0700 Subject: `echo cmd | nim r - -arg1 -arg2` now works (#14210) --- compiler/nim.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/nim.nim') diff --git a/compiler/nim.nim b/compiler/nim.nim index 7fe0db5cf..80d9b66b6 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -52,7 +52,7 @@ proc processCmdLine(pass: TCmdLinePass, cmd: string; config: ConfigRef) = config.commandLine.add ':' config.commandLine.add p.val.quoteShell - if p.key == " ": + if p.key == "": # `-` was passed to indicate main project is stdin p.key = "-" if processArgument(pass, p, argsCount, config): break else: -- cgit 1.4.1-2-gfad0