diff --git a/CMakeLists.txt b/CMakeLists.txt index e054b89..3105c43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 4.0.16) +set(BLT_VERSION 4.0.17) set(BLT_TARGET BLT) diff --git a/src/blt/parse/argparse_v2.cpp b/src/blt/parse/argparse_v2.cpp index 28c56a3..832263c 100644 --- a/src/blt/parse/argparse_v2.cpp +++ b/src/blt/parse/argparse_v2.cpp @@ -453,10 +453,9 @@ namespace blt::argparse } if (consumer.peek().is_flag()) { - throw detail::unexpected_argument_error(make_string( - "Expected ", argc, " arguments to be consumed by '", arg, "' but found a flag '", - consumer.peek().get_argument(), "' instead!" - )); + std::cout << "Warning: arg '" << arg << "' expects " << argc << + " arguments to be consumed but we found a flag '" << consumer.peek(). + get_argument() << "'. We will comply as this may be desired if this argument is a file." << std::endl; } args.push_back(consumer.consume().get_argument()); }