• Home
  • Raw
  • Download

Lines Matching refs:from_env

76 static void PrintError(const std::string& arg, std::string msg, bool from_env) {  in PrintError()  argument
77 if (from_env) { in PrintError()
90 static bool GetNumeric(const char* arg, const char* value, IntType* numeric_value, bool from_env) { in GetNumeric() argument
99 PrintError(arg, std::string("value overflows (") + value + ")", from_env); in GetNumeric()
102 from_env); in GetNumeric()
116 bool Options::SetNumeric(const std::string& arg, const std::string& value, bool from_env) { in SetNumeric() argument
118 if (!GetNumeric<uint64_t>(arg.c_str(), value.c_str(), numeric, from_env)) { in SetNumeric()
122 PrintError(arg, "requires a number greater than zero.", from_env); in SetNumeric()
128 bool Options::SetNumericEnvOnly(const std::string& arg, const std::string& value, bool from_env) { in SetNumericEnvOnly() argument
129 if (!from_env) { in SetNumericEnvOnly()
134 if (!GetNumeric<uint64_t>(arg.c_str(), value.c_str(), numeric, from_env)) { in SetNumericEnvOnly()
145 bool Options::SetIterations(const std::string& arg, const std::string& value, bool from_env) { in SetIterations() argument
146 if (!GetNumeric<int>(arg.c_str(), value.c_str(), &num_iterations_, from_env)) { in SetIterations()
157 bool Options::SetXmlFile(const std::string& arg, const std::string& value, bool from_env) { in SetXmlFile() argument
159 PrintError(arg, "only supports an xml output file.", from_env); in SetXmlFile()
164 PrintError(arg, "requires a file name after xml:", from_env); in SetXmlFile()
174 from_env); in SetXmlFile()
190 bool from_env) { in HandleArg() argument
192 PrintError(arg, "is not compatible with isolation runs.", from_env); in HandleArg()
198 PrintError(arg, "requires an argument.", from_env); in HandleArg()
202 if (info.func != nullptr && !(this->*(info.func))(arg, value, from_env)) { in HandleArg()
206 PrintError(arg, "does not take an argument.", from_env); in HandleArg()
209 return (this->*(info.func))(arg, value, from_env); in HandleArg()