diff --git a/test/options.cpp b/test/options.cpp index 1c02053..0fc2c37 100644 --- a/test/options.cpp +++ b/test/options.cpp @@ -94,7 +94,7 @@ TEST_CASE("Basic options", "[options]") CHECK(arguments[2].key() == "value"); CHECK(arguments[3].key() == "av"); - CHECK_THROWS_AS(result["nothing"].as(), std::domain_error&); + CHECK_THROWS_AS(result["nothing"], cxxopts::option_required_exception&); } TEST_CASE("Short options", "[options]")