Commit d430e802 authored by Alexander Alekhin's avatar Alexander Alekhin

cmdparser: allow empty strings

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