correctly honor cmdline --hint:conf:on/off ; correctly show Conf hints in order

This commit is contained in:
Timothee Cour 2020-02-24 19:20:52 -08:00 • committed by Andreas Rumpf
commit ce36fdc897
6 changed files with 18 additions and 3 deletions

View file

@ -27,7 +27,9 @@ 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 != "":