untaint command line option for parsing

This commit is contained in:
Jacek Sieka 2016-04-06 00:01:57 +08:00
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