Update commands.nim

This commit is contained in:
Varriount
2014-08-02 00:16:10 -04:00
parent 9b4b4bcbc5
commit 23f64dd63d

View File

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