MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / option_dependency

Function option_dependency

src/Config.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8void option_dependency(const variables_map &vm, const char *for_what, const char *required_option) {
9 if (vm.count(for_what) && !vm[for_what].defaulted())
10 if (vm.count(required_option) == 0 || vm[required_option].defaulted())
11 throw std::logic_error(std::string("Option '") + for_what + "' requires option '" + required_option + "'.");
12}
13
14void Config::ParseFile(std::ifstream &inStream) {
15 ASSERT(false, "Config load from file not implemented! (yet)");

Callers 1

InitFromCommandLineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected