Skip to content

Commit

Permalink
Update include/argparse/argparse.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
rouault and github-actions[bot] authored Mar 13, 2024
1 parent 07dfb7d commit 3d2ac71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/argparse/argparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d2ac71

Please sign in to comment.