remove isCmdLine; use passCmd1

This commit is contained in:
Timothee Cour 2020-02-26 03:10:11 -08:00 • committed by Andreas Rumpf
commit c1cbf94e2d
4 changed files with 3 additions and 7 deletions

View file

@ -27,9 +27,7 @@ proc initDefinesProg*(self: NimProg, conf: ConfigRef, name: string) =
defineSymbol conf.symbols, name
proc processCmdLineAndProjectPath*(self: NimProg, conf: ConfigRef) =
conf.isCmdLine = true
self.processCmdLine(passCmd1, "", conf)
conf.isCmdLine = false
if self.supportsStdinFile and conf.projectName == "-":
handleStdinInput(conf)
elif conf.projectName != "":