echo cmd | nim r - -arg1 -arg2 now works (#14210)
This commit is contained in:
parent
a73d403901
commit
f115e40e6a
2 changed files with 32 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue