Add vcpkg_cmd_arguments::check_no_optional_arguments()
MODIFY
include/vcpkg_cmd_arguments.h
include/vcpkg_cmd_arguments.h
@@ -20,6 +20,7 @@ namespace vcpkg
std::string command;
std::vector<std::string> command_arguments;
+ void vcpkg_cmd_arguments::check_no_optional_command_arguments() const;
std::unordered_set<std::string> check_and_get_optional_command_arguments(const std::vector<std::string>& valid_options) const;
void check_max_arg_count(const size_t expected_arg_count) const;

MODIFY
src/vcpkg_cmd_arguments.cpp
src/vcpkg_cmd_arguments.cpp
@@ -135,6 +135,11 @@ namespace vcpkg
return args;
}
+ void vcpkg_cmd_arguments::check_no_optional_command_arguments() const
+ {
+ this->check_and_get_optional_command_arguments({});
+ }
+
std::unordered_set<std::string> vcpkg_cmd_arguments::check_and_get_optional_command_arguments(const std::vector<std::string>& valid_options) const
{
std::unordered_set<std::string> output;

Add vcpkg_cmd_arguments::check_no_optional_arguments()