MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / setFromArgs

Method setFromArgs

src/thundersvm/util/log.cpp:1964–1977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1962 }
1963
1964 void VRegistry::setFromArgs(const base::utils::CommandLineArgs* commandLineArgs) {
1965 if (commandLineArgs->hasParam("-v") || commandLineArgs->hasParam("--verbose") ||
1966 commandLineArgs->hasParam("-V") || commandLineArgs->hasParam("--VERBOSE")) {
1967 setLevel(base::consts::kMaxVerboseLevel);
1968 } else if (commandLineArgs->hasParamWithValue("--v")) {
1969 setLevel(static_cast<base::type::VerboseLevel>(atoi(commandLineArgs->getParamValue("--v"))));
1970 } else if (commandLineArgs->hasParamWithValue("--V")) {
1971 setLevel(static_cast<base::type::VerboseLevel>(atoi(commandLineArgs->getParamValue("--V"))));
1972 } else if ((commandLineArgs->hasParamWithValue("-vmodule")) && vModulesEnabled()) {
1973 setModules(commandLineArgs->getParamValue("-vmodule"));
1974 } else if (commandLineArgs->hasParamWithValue("-VMODULE") && vModulesEnabled()) {
1975 setModules(commandLineArgs->getParamValue("-VMODULE"));
1976 }
1977 }
1978
1979#if !defined(ELPP_DEFAULT_LOGGING_FLAGS)
1980# define ELPP_DEFAULT_LOGGING_FLAGS 0x0

Callers 1

Calls 3

hasParamMethod · 0.80
hasParamWithValueMethod · 0.80
getParamValueMethod · 0.80

Tested by

no test coverage detected