Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Mar 11 '16

Tetragramm gravatar image

Well, looking at the sample code, you call parser.check() to see if there were any errors, and then parser.printErrors() tells you what went wrong.

http://docs.opencv.org/3.1.0/d0/d2e/classcv_1_1CommandLineParser.html#a2dfd78bcc9dfae2250fedf5d8c9a3857

It doesn't say if calling parser.has("s") would return false if there were errors, I suppose you'd have to check that yourself.