cmdparser: allow empty strings

This commit is contained in:
Alexander Alekhin 2015-09-22 15:15:38 +03:00
parent 12f01b778b
commit d430e802f2

View File

@ -104,7 +104,7 @@ void CommandLineParser::getByName(const String& name, bool space_delete, int typ
v = impl->cat_string(v);
// it is an error if we just got the default value here
if(v.empty())
if (v.empty() && type != Param::STRING)
break;
from_str(v, type, dst);