diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-05-04 02:27:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 11:27:59 +0200 |
commit | f115e40e6a5721b34d41d4ad58e47e194f0e7788 (patch) | |
tree | 83b103fc58c0c5c1d4a32c9ece1e85279378cc98 /compiler/nim.nim | |
parent | a73d40390167282de40c0cb8d0075cd944827708 (diff) | |
download | Nim-f115e40e6a5721b34d41d4ad58e47e194f0e7788.tar.gz |
`echo cmd | nim r - -arg1 -arg2` now works (#14210)
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r-- | compiler/nim.nim | 2 |
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: |