h2load: Exit if --timing-script and -r option is used together

This commit is contained in:
Tatsuhiro Tsujikawa 2015-08-20 19:07:03 +09:00
parent e8ec7867b2
commit 780a0381ba
1 changed files with 6 additions and 0 deletions

View File

@ -1533,6 +1533,12 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
if (config.timing_script && config.is_rate_mode()) {
std::cerr << "--timing-script, -r: these options cannot be used together."
<< std::endl;
exit(EXIT_FAILURE);
}
std::vector<std::string> reqlines;
if (config.ifile.empty()) {