Add a program function

Fixes 323. Adds a function to retrieve the program name.
This commit is contained in:
Jarryd Beck
2022-01-14 16:26:48 +11:00
parent ad2d1a6b5f
commit 4e208b95b7
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -95,6 +95,8 @@ TEST_CASE("Basic options", "[options]")
CHECK(arguments[3].key() == "av");
CHECK_THROWS_AS(result["nothing"].as<std::string>(), cxxopts::option_has_no_value_exception&);
CHECK(options.program() == "tester");
}
TEST_CASE("Short options", "[options]")