From d430e802f2cdb4a144caaad45199f3c222b31f69 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 22 Sep 2015 15:15:38 +0300 Subject: [PATCH] cmdparser: allow empty strings --- modules/core/src/command_line_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/command_line_parser.cpp b/modules/core/src/command_line_parser.cpp index a7c1edc69f..9670959416 100644 --- a/modules/core/src/command_line_parser.cpp +++ b/modules/core/src/command_line_parser.cpp @@ -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);