CommandLineParser: Refactor checkMutuallyExclusive() to handle multiple options and use it more

This commit is contained in:
Kamil Śliwak
2021-07-27 15:54:32 +02:00
parent f97fe813ec
commit 3b104a3f38
2 changed files with 9 additions and 18 deletions
+1 -5
View File
@@ -218,11 +218,7 @@ private:
/// @return false if there are any validation errors, true otherwise.
bool parseLibraryOption(std::string const& _input);
bool checkMutuallyExclusive(
boost::program_options::variables_map const& args,
std::string const& _optionA,
std::string const& _optionB
);
bool checkMutuallyExclusive(std::vector<std::string> const& _optionNames);
[[noreturn]] void printVersionAndExit();
[[noreturn]] void printLicenseAndExit();
size_t countEnabledOptions(std::vector<std::string> const& _optionNames) const;