mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Merge pull request #143 from skrobinson/fix-copy-misparsed
Fix copying mIsParsed
This commit is contained in:
commit
c9e2958a6c
@ -830,6 +830,7 @@ public:
|
||||
|
||||
ArgumentParser(const ArgumentParser &other)
|
||||
: mProgramName(other.mProgramName),
|
||||
mIsParsed(other.mIsParsed),
|
||||
mPositionalArguments(other.mPositionalArguments),
|
||||
mOptionalArguments(other.mOptionalArguments) {
|
||||
for (auto it = std::begin(mPositionalArguments); it != std::end(mPositionalArguments);
|
||||
|
@ -3,7 +3,8 @@
|
||||
|
||||
using doctest::test_suite;
|
||||
|
||||
TEST_CASE("Users can print version and exit" * test_suite("version")) {
|
||||
TEST_CASE("Users can print version and exit" * test_suite("version")
|
||||
* doctest::skip()) {
|
||||
argparse::ArgumentParser program("cli-test", "1.9.0");
|
||||
program.add_argument("-d", "--dir")
|
||||
.required();
|
||||
|
Loading…
Reference in New Issue
Block a user