mirror of
https://github.com/jarro2783/cxxopts.git
synced 2026-08-31 18:27:03 +02:00
Add a program function
Fixes 323. Adds a function to retrieve the program name.
This commit is contained in:
@@ -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]")
|
||||
|
||||
Reference in New Issue
Block a user