diff --git a/lib/pure/parseopt.nim b/lib/pure/parseopt.nim index d0fcd5dae77c7..a95a5b48d7a5d 100644 --- a/lib/pure/parseopt.nim +++ b/lib/pure/parseopt.nim @@ -226,9 +226,9 @@ when declared(os.paramCount): if cmdline != "": result.cmds = parseCmdLine(cmdline) else: - result.cmds = newSeq[string](paramCount()) - for i in countup(1, paramCount()): - result.cmds[i-1] = paramStr(i).string + result.cmds = newSeq[string](os.paramCount()) + for i in countup(1, os.paramCount()): + result.cmds[i-1] = os.paramStr(i).string result.kind = cmdEnd result.key = TaintedString"" @@ -263,9 +263,9 @@ when declared(os.paramCount): for i in 0..