summaryrefslogtreecommitdiffstats
path: root/Source/cmArgumentParser.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-28 20:25:54 (GMT)
committerBrad King <brad.king@kitware.com>2022-07-05 20:35:01 (GMT)
commit2873f41bd9f3636f53abf9c31a0b7492366c5199 (patch)
tree673696739fc116262eaba782946e610af51b8020 /Source/cmArgumentParser.h
parent1ee5a4a548c62e5c382f3497be82aac36a99e485 (diff)
downloadCMake-2873f41bd9f3636f53abf9c31a0b7492366c5199.zip
CMake-2873f41bd9f3636f53abf9c31a0b7492366c5199.tar.gz
CMake-2873f41bd9f3636f53abf9c31a0b7492366c5199.tar.bz2
cmArgumentParser: Require callers to consider unparsed arguments
Diffstat (limited to 'Source/cmArgumentParser.h')
-rw-r--r--Source/cmArgumentParser.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmArgumentParser.h b/Source/cmArgumentParser.h
index 93ef6c1..aa6cf75 100644
--- a/Source/cmArgumentParser.h
+++ b/Source/cmArgumentParser.h
@@ -78,7 +78,7 @@ public:
template <typename Range>
void Parse(Result& result, Range const& args,
- std::vector<std::string>* unparsedArguments = nullptr,
+ std::vector<std::string>* unparsedArguments,
std::vector<cm::string_view>* keywordsMissingValue = nullptr,
std::vector<cm::string_view>* parsedKeywords = nullptr) const
{
@@ -90,8 +90,7 @@ public:
}
template <typename Range>
- Result Parse(Range const& args,
- std::vector<std::string>* unparsedArguments = nullptr,
+ Result Parse(Range const& args, std::vector<std::string>* unparsedArguments,
std::vector<cm::string_view>* keywordsMissingValue = nullptr,
std::vector<cm::string_view>* parsedKeywords = nullptr) const
{
@@ -118,8 +117,7 @@ public:
}
template <typename Range>
- void Parse(Range const& args,
- std::vector<std::string>* unparsedArguments = nullptr,
+ void Parse(Range const& args, std::vector<std::string>* unparsedArguments,
std::vector<cm::string_view>* keywordsMissingValue = nullptr,
std::vector<cm::string_view>* parsedKeywords = nullptr) const
{