Skip to content

Commit

Permalink
Merge pull request #166 from ericonr/fix-version
Browse files Browse the repository at this point in the history
Fix regression in version printing.
  • Loading branch information
p-ranav authored Apr 14, 2022
2 parents 1a552df + 3b89546 commit 2312342
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 @@ -867,7 +867,7 @@ class ArgumentParser {
if ((add_args & default_arguments::version) == default_arguments::version) {
add_argument("-v", "--version")
.action([&](const auto &unused) {
std::cout << m_version;
std::cout << m_version << std::endl;
std::exit(0);
})
.default_value(false)
Expand Down

0 comments on commit 2312342

Please sign in to comment.