diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index c449368..63d6336 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -466,9 +466,9 @@ namespace cxxopts std::basic_regex integer_pattern ("(-)?(0x)?([0-9a-zA-Z]+)|((0x)?0)"); std::basic_regex truthy_pattern - ("(t|T)(rue)?"); + ("(t|T)(rue)?|1"); std::basic_regex falsy_pattern - ("((f|F)(alse)?)?"); + ("(f|F)(alse)?|0"); } namespace detail