mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Merge pull request #166 from ericonr/fix-version
Fix regression in version printing.
This commit is contained in:
commit
2312342a62
@ -867,7 +867,7 @@ public:
|
|||||||
if ((add_args & default_arguments::version) == default_arguments::version) {
|
if ((add_args & default_arguments::version) == default_arguments::version) {
|
||||||
add_argument("-v", "--version")
|
add_argument("-v", "--version")
|
||||||
.action([&](const auto &unused) {
|
.action([&](const auto &unused) {
|
||||||
std::cout << m_version;
|
std::cout << m_version << std::endl;
|
||||||
std::exit(0);
|
std::exit(0);
|
||||||
})
|
})
|
||||||
.default_value(false)
|
.default_value(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user