| 28 | } |
| 29 | |
| 30 | std::filesystem::path required_path(int argc, char ** argv, const std::string & name) { |
| 31 | if (const auto value = arg_value(argc, argv, name)) { |
| 32 | return std::filesystem::path(*value); |
| 33 | } |
| 34 | throw std::runtime_error("missing required argument: " + name); |
| 35 | } |
| 36 | |
| 37 | } // namespace |
| 38 |