summaryrefslogtreecommitdiffstats
path: root/Source/cmArgumentParser.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-06 15:45:57 (GMT)
committerBrad King <brad.king@kitware.com>2022-07-07 13:49:04 (GMT)
commitf46b2e914256322fc8d33b425ec01e9d9c1496ba (patch)
treec52e8e524354fa7c7248ea5ed14802e470a6933b /Source/cmArgumentParser.h
parente6d1e29ffa6bd3141a769d1281f3407ed0774139 (diff)
downloadCMake-f46b2e914256322fc8d33b425ec01e9d9c1496ba.zip
CMake-f46b2e914256322fc8d33b425ec01e9d9c1496ba.tar.gz
CMake-f46b2e914256322fc8d33b425ec01e9d9c1496ba.tar.bz2
cmArgumentParser: Model maybe-missing string with wrapper type
Bindings to `std::string` require one value. Some clients have been filtering `keywordsMissingValue` to support keywords that tolerate a missing value. Offer them a type-safe way to achieve this instead.
Diffstat (limited to 'Source/cmArgumentParser.h')
-rw-r--r--Source/cmArgumentParser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmArgumentParser.h b/Source/cmArgumentParser.h
index 2f0a76d..26148d9 100644
--- a/Source/cmArgumentParser.h
+++ b/Source/cmArgumentParser.h
@@ -39,6 +39,7 @@ public:
void Bind(bool& val);
void Bind(std::string& val);
+ void Bind(Maybe<std::string>& val);
void Bind(MaybeEmpty<std::vector<std::string>>& val);
void Bind(NonEmpty<std::vector<std::string>>& val);
void Bind(std::vector<std::vector<std::string>>& val);