summary refs log tree commit diff stats
path: root/rod/commands.nim
diff options
context:
space:
mode:
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