summary refs log tree commit diff stats
path: root/rod/commands.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-01-18 17:06:43 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2010-01-18 17:06:43 +0100
commitb50133b50f12025faf4801558f7e42cd96493da0 (patch)
treedf4e1548c4cbf3a82700bf31585754299b797cbb /rod/commands.nim
parent8259d9d15aa34dbbd84bb19150ab16a27378dd88 (diff)
downloadNim-b50133b50f12025faf4801558f7e42cd96493da0.tar.gz
strutils.parseHexInt added
Diffstat (limited to 'rod/commands.nim')
-rwxr-xr-xrod/commands.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/rod/commands.nim b/rod/commands.nim
index f6079d6d5..17c946292 100755
--- a/rod/commands.nim
+++ b/rod/commands.nim
@@ -232,7 +232,9 @@ proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) =
   of wPath, wP: 
     expectArg(switch, arg, pass, info)
     path = processPath(arg)
-    discard lists.IncludeStr(options.searchPaths, path)
+    if not contains(options.searchPaths, path): 
+      lists.PrependStr(options.searchPaths, path)
+    #discard lists.IncludeStr(options.searchPaths, path)
   of wOut, wO: 
     expectArg(switch, arg, pass, info)
     options.outFile = arg