| 292 | } |
| 293 | |
| 294 | static int parseInt(const char* context, const char* v) { |
| 295 | try { |
| 296 | return std::stoi(optarg); |
| 297 | } catch (const std::exception&) { |
| 298 | errx(1, "unable to parse integer %s for %s\n", v, context); |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | static double parseDouble(const char* context, const char* v) { |
| 303 | try { |
no outgoing calls