Lines Matching refs:from_env

81 static void PrintError(const std::string& arg, std::string msg, bool from_env) {  in PrintError()  argument
82 if (from_env) { in PrintError()
96 bool from_env) { in GetNumeric() argument
99 PrintError(arg, std::string("value overflows (") + value + ")", from_env); in GetNumeric()
104 from_env); in GetNumeric()
117 bool Options::SetNumeric(const std::string& arg, const std::string& value, bool from_env) { in SetNumeric() argument
119 if (!GetNumeric<uint64_t>(arg, value, numeric, from_env)) { in SetNumeric()
123 PrintError(arg, "requires a number greater than zero.", from_env); in SetNumeric()
129 bool Options::SetNumericEnvOnly(const std::string& arg, const std::string& value, bool from_env) { in SetNumericEnvOnly() argument
130 if (!from_env) { in SetNumericEnvOnly()
135 if (!GetNumeric<uint64_t>(arg, value, numeric, from_env)) { in SetNumericEnvOnly()
146 bool Options::SetIterations(const std::string& arg, const std::string& value, bool from_env) { in SetIterations() argument
147 if (!GetNumeric<int>(arg, value, &num_iterations_, from_env)) { in SetIterations()
158 bool Options::SetXmlFile(const std::string& arg, const std::string& value, bool from_env) { in SetXmlFile() argument
160 PrintError(arg, "only supports an xml output file.", from_env); in SetXmlFile()
165 PrintError(arg, "requires a file name after xml:", from_env); in SetXmlFile()
175 from_env); in SetXmlFile()
191 bool from_env) { in HandleArg() argument
193 PrintError(arg, "is not compatible with isolation runs.", from_env); in HandleArg()
199 PrintError(arg, "requires an argument.", from_env); in HandleArg()
203 if (info.func != nullptr && !(this->*(info.func))(arg, value, from_env)) { in HandleArg()
207 PrintError(arg, "does not take an argument.", from_env); in HandleArg()
210 return (this->*(info.func))(arg, value, from_env); in HandleArg()