untaint command line option for parsing

This commit is contained in:
Jacek Sieka
2016-04-06 00:01:57 +08:00
parent 25abb7c2b6
commit 796f4e917c

View File

@@ -410,7 +410,7 @@ proc main() =
of "print", "verbose": optPrintResults = true
of "failing": optFailing = true
of "pedantic": optPedantic = true
of "targets": targets = parseTargets(p.val)
of "targets": targets = parseTargets(p.val.string)
else: quit Usage
p.next()
if p.kind != cmdArgument: quit Usage