idk what changed

v2
Brett 2025-02-19 16:29:17 -05:00
parent c23759ac6d
commit 5f9ea32671
2 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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());
}