hotfix: --noNimblePath wasn't working when in a config file

This commit is contained in:
Andreas Rumpf
2016-05-31 09:59:17 +02:00
parent 893be3a5a4
commit f3fdad0eda

View File

@@ -316,6 +316,9 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
of "nonimblepath", "nobabelpath":
expectNoArg(switch, arg, pass, info)
options.gNoNimblePath = true
options.lazyPaths.head = nil
options.lazyPaths.tail = nil
options.lazyPaths.counter = 0
of "excludepath":
expectArg(switch, arg, pass, info)
let path = processPath(arg, info)