fix: Fix false pattern too

cf. 318055b811
This commit is contained in:
Masashi Fujita 2017-12-04 09:04:00 +09:00
parent 318055b811
commit 6099398a3c

View File

@ -446,7 +446,7 @@ namespace cxxopts
std::basic_regex<char> truthy_pattern
("(t|T)(rue)?");
std::basic_regex<char> falsy_pattern
("(f|false|F|False)?");
("((f|F)(alse)?)?");
}
namespace detail
@ -1570,7 +1570,7 @@ ParseResult::consume_positional(std::string a)
if (iter != m_options.end())
{
auto& result = m_results[iter->second];
if (!iter->second->value().is_container())
if (!iter->second->value().is_container())
{
if (result.count() == 0)
{