Clean up a bit.

This commit is contained in:
Clay Sweetser 2014-07-29 21:23:18 -04:00
commit 6a09fc358e

View file

@ -290,14 +290,14 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
options.gNoBabelPath = true options.gNoBabelPath = true
of "excludepath": of "excludepath":
expectArg(switch, arg, pass, info) expectArg(switch, arg, pass, info)
let let path = processPath(arg)
path = processPath(arg)
strippedPath = removeTrailingDirSep(path)
echo repr(options.searchPaths) echo repr(options.searchPaths)
lists.excludePath(options.searchPaths, path) lists.excludePath(options.searchPaths, path)
lists.excludePath(options.lazyPaths, path) lists.excludePath(options.lazyPaths, path)
lists.excludePath(options.searchPaths, strippedPath) if (len(path) > 0) and (path[len(path) - 1] == DirSep)::
lists.excludePath(options.lazyPaths, strippedPath) let strippedPath = removeTrailingDirSep(path)
lists.excludePath(options.searchPaths, strippedPath)
lists.excludePath(options.lazyPaths, strippedPath)
echo repr(options.searchPaths) echo repr(options.searchPaths)
of "nimcache": of "nimcache":
expectArg(switch, arg, pass, info) expectArg(switch, arg, pass, info)