add 'tps' command line argument

This commit is contained in:
MihailRis 2025-10-02 19:40:05 +03:00
parent 06e65911a3
commit dbab645c94
4 changed files with 34 additions and 13 deletions

View file

@ -33,5 +33,14 @@ namespace util {
last = argv[pos];
return argv[pos++];
}
int nextInt() {
auto text = next();
try {
return std::stoi(text);
} catch (const std::exception& e) {
throw std::runtime_error(e.what());
}
}
};
}