diff --git a/examples/options/CMakeLists.txt b/examples/options/CMakeLists.txt index d7aaccc75..5dc201b4c 100644 --- a/examples/options/CMakeLists.txt +++ b/examples/options/CMakeLists.txt @@ -14,7 +14,6 @@ traccc_add_library( traccc_options options TYPE SHARED "include/traccc/options/clusterization.hpp" "include/traccc/options/detector.hpp" "include/traccc/options/generation.hpp" - "include/traccc/options/handle_argument_errors.hpp" "include/traccc/options/input_data.hpp" "include/traccc/options/output_data.hpp" "include/traccc/options/performance.hpp" @@ -32,7 +31,6 @@ traccc_add_library( traccc_options options TYPE SHARED "src/clusterization.cpp" "src/detector.cpp" "src/generation.cpp" - "src/handle_argument_errors.cpp" "src/input_data.cpp" "src/output_data.cpp" "src/performance.cpp" diff --git a/examples/options/include/traccc/options/handle_argument_errors.hpp b/examples/options/include/traccc/options/handle_argument_errors.hpp deleted file mode 100644 index f5b362563..000000000 --- a/examples/options/include/traccc/options/handle_argument_errors.hpp +++ /dev/null @@ -1,21 +0,0 @@ -/** TRACCC library, part of the ACTS project (R&D line) - * - * (c) 2022 CERN for the benefit of the ACTS project - * - * Mozilla Public License Version 2.0 - */ - -// Boost -#include - -// STD -#include - -namespace traccc { - -namespace po = boost::program_options; - -void handle_argument_errors(po::variables_map& vm, - const po::options_description& desc); - -} // namespace traccc \ No newline at end of file diff --git a/examples/options/src/handle_argument_errors.cpp b/examples/options/src/handle_argument_errors.cpp deleted file mode 100644 index de31747b3..000000000 --- a/examples/options/src/handle_argument_errors.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/** TRACCC library, part of the ACTS project (R&D line) - * - * (c) 2022 CERN for the benefit of the ACTS project - * - * Mozilla Public License Version 2.0 - */ - -// options -#include "traccc/options/handle_argument_errors.hpp" - -void traccc::handle_argument_errors( - traccc::po::variables_map& vm, - const traccc::po::options_description& desc) { - - // Print a help message if the user asked for it. - if (vm.count("help")) { - std::cout << desc << std::endl; - std::exit(0); - } - - // Handle any and all errors. - try { - po::notify(vm); - } catch (const std::exception& ex) { - std::cerr << "Couldn't interpret command line options because of:\n\n" - << ex.what() << "\n\n" - << desc << std::endl; - std::exit(1); - } -}