summary refs log tree commit diff stats
path: root/compiler/nim.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-05-04 02:27:59 -0700
committerGitHub <noreply@github.com>2020-05-04 11:27:59 +0200
commitf115e40e6a5721b34d41d4ad58e47e194f0e7788 (patch)
tree83b103fc58c0c5c1d4a32c9ece1e85279378cc98 /compiler/nim.nim
parenta73d40390167282de40c0cb8d0075cd944827708 (diff)
downloadNim-f115e40e6a5721b34d41d4ad58e47e194f0e7788.tar.gz
`echo cmd | nim r - -arg1 -arg2` now works (#14210)
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r--compiler/nim.nim2
1 files changed, 1 insertions, 1 deletions
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: