diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c486aa70..6591b013c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ endif() FetchContent_Declare( cxxopts GIT_REPOSITORY https://github.com/jarro2783/cxxopts.git - GIT_TAG v2.2.1 + GIT_TAG v3.1.1 ) FetchContent_MakeAvailable(cxxopts) diff --git a/src/cli.cpp b/src/cli.cpp index 8f96d7364..3044c9785 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -310,7 +310,7 @@ int main(int argc, char *argv[]) try { cout << "Invalid operation '" << operation << "'. Use create/prove/verify/check" << endl; } return 0; -} catch (const cxxopts::OptionException &e) { +} catch (const cxxopts::exceptions::exception &e) { cout << "error parsing options: " << e.what() << endl; return 1; } catch (const std::exception &e) {