From 3d2ac711552d345767530e4dd3e75444d6755254 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 13 Mar 2024 01:57:43 +0100 Subject: [PATCH] Update include/argparse/argparse.hpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- include/argparse/argparse.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;