diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index a93ca37d..d8dcd512 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -2024,7 +2024,7 @@ class ArgumentParser { const std::string arg_inline_usage = argument.get_inline_usage(); const MutuallyExclusiveGroup *arg_mutex = get_belonging_mutex(&argument); - if (cur_mutex && !arg_mutex) { + if ((cur_mutex != nullptr) && !arg_mutex) { curline += ']'; if (this->m_usage_break_on_mutex) { stream << curline << std::endl;