diff --git a/CMakeLists.txt b/CMakeLists.txt index d199a901c..eaf193406 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,13 +48,12 @@ FetchContent_Declare( ) set(CLI11_GIT_REPOSITORY "https://github.com/CLIUtils/CLI11") -# v2.4.2 -set(CLI11_GIT_TAG "6c7b07a878ad834957b98d0f9ce1dbe0cb204fc9") +# v2.4.2+, 2024-11-28 main +set(CLI11_GIT_TAG "8260578fd276c8ed6aa46f0fbc946b7685dd2c36") FetchContent_Declare( cli11 GIT_REPOSITORY ${CLI11_GIT_REPOSITORY} GIT_TAG ${CLI11_GIT_TAG} - GIT_SHALLOW TRUE ) set(rang_GIT_REPOSITORY "https://github.com/agauniyal/rang.git") diff --git a/include/itkPipeline.h b/include/itkPipeline.h index 6b06a69f0..51499938f 100644 --- a/include/itkPipeline.h +++ b/include/itkPipeline.h @@ -42,7 +42,8 @@ const std::string arg(iwpArgv[ii]); \ if (arg == "-h" || arg == "--help") \ { \ - (pipeline).exit(CLI::CallForAllHelp()); \ + const auto parseResult = CLI::CallForHelp(); \ + (pipeline).exit(parseResult); \ std::exit(0); \ } \ if (arg == "--interface-json") \