summary refs log tree commit diff stats
path: root/tools/nimweb.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tools/nimweb.nim')
-rw-r--r--tools/nimweb.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nimweb.nim b/tools/nimweb.nim
index 81602549c..135be9570 100644
--- a/tools/nimweb.nim
+++ b/tools/nimweb.nim
@@ -70,7 +70,7 @@ proc parseCmdLine(c: var TConfigData) =
       of "version", "v": writeln(stdout, Version)
       of "o", "output": c.outdir = val
       of "var":
-        var idx = findSubStr('=', val)
+        var idx = val.find('=')
         if idx < 0: quit("invalid command line")
         c.vars[copy(val, 0, idx-1)] = copy(val, idx+1)
       else: quit(Usage)