aboutsummaryrefslogtreecommitdiff
path: root/test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test.cxx')
-rw-r--r--test.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/test.cxx b/test.cxx
index 597eaae..0726619 100644
--- a/test.cxx
+++ b/test.cxx
@@ -769,7 +769,7 @@ TEST_CASE("Subparser help works as expected", "[args]")
auto d = p.GetDescription(p.helpParams, 0);
s << p;
- REQUIRE(s.str() == R"( git {OPTIONS}
+ REQUIRE(s.str() == R"( git [COMMAND] {OPTIONS}
git-like parser
@@ -797,7 +797,7 @@ TEST_CASE("Subparser help works as expected", "[args]")
p.ParseArgs(std::vector<std::string>{});
s.str("");
s << p;
- REQUIRE(s.str() == R"( git {OPTIONS}
+ REQUIRE(s.str() == R"( git [COMMAND] {OPTIONS}
git-like parser
@@ -809,12 +809,11 @@ TEST_CASE("Subparser help works as expected", "[args]")
)");
-
p.helpParams.showCommandChildren = true;
p.ParseArgs(std::vector<std::string>{});
s.str("");
s << p;
- REQUIRE(s.str() == R"( git {OPTIONS}
+ REQUIRE(s.str() == R"( git [COMMAND] {OPTIONS}
git-like parser
@@ -833,7 +832,7 @@ TEST_CASE("Subparser help works as expected", "[args]")
p.ParseArgs(std::vector<std::string>{});
s.str("");
s << p;
- REQUIRE(s.str() == R"( git {OPTIONS}
+ REQUIRE(s.str() == R"( git [COMMAND] {OPTIONS}
git-like parser