From 2b6b62c52c0994a424415e8fe7f665cbee2a5fa7 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Thu, 3 May 2018 15:52:55 +0200 Subject: [PATCH] Adding smart validators --- include/CLI/Option.hpp | 8 ++ include/CLI/Validators.hpp | 205 +++++++++++++++++++++++++++---------- tests/HelpTest.cpp | 78 ++++++++++++++ tests/HelpersTest.cpp | 57 +++++++++++ 4 files changed, 294 insertions(+), 54 deletions(-) diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index c74caf81..62524ba2 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -272,6 +272,14 @@ class Option : public OptionBase