Behavior of CommandLineParser::has() [closed]
I suppose CommandLineParser::has("something") should be true when the command line has --something
in it?
The following code shows some contradictory behavior.
cout << "yo " << parser.get<int>("cam_id") << endl;
cout << "ya " << parser.has("cam_id") << endl;
When run with the input --cam_id=22
gives the following output:
yo 22
ya 0
I was expecting it to be ya 1
as well. How would I detect if the input has has a certain parameter.
this is a known issue
ah, known issue again. Should be a simple fix; how much time does it take to fix that?
@krips89 maybe not much, help yourself http://code.opencv.org/projects/openc...