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