Commit 7c13dc6c authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

little fix in command line parser - catch unknown parameter types

parent 0598f33a
......@@ -71,6 +71,8 @@ static void from_str(const string& str, int type, void* dst)
ss >> *(double*)dst;
else if( type == Param::STRING )
ss >> *(string*)dst;
else
CV_Error(CV_StsBadArg, "unknown/unsupported parameter type");
if (ss.fail())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment