diff options
author | Brad King <brad.king@kitware.com> | 2022-07-06 15:45:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-07-07 13:49:04 (GMT) |
commit | f46b2e914256322fc8d33b425ec01e9d9c1496ba (patch) | |
tree | c52e8e524354fa7c7248ea5ed14802e470a6933b /Source/cmArgumentParser.h | |
parent | e6d1e29ffa6bd3141a769d1281f3407ed0774139 (diff) | |
download | CMake-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.h | 1 |
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); |