mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CommandLineParser: Refactor checkMutuallyExclusive() to handle multiple options and use it more
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user