mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Complete "remainig" backward compatibility
This commit is contained in:
parent
6dfaa1c20c
commit
0195a5065c
@ -836,7 +836,8 @@ private:
|
||||
return std::any_cast<T>(mDefaultValue);
|
||||
} else {
|
||||
if constexpr (details::is_container_v<T>)
|
||||
return any_cast_container<T>(mValues);
|
||||
if (!mAcceptsOptionalLikeValue)
|
||||
return any_cast_container<T>(mValues);
|
||||
}
|
||||
throw std::logic_error("No value provided for '" + mNames.back() + "'.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user