| 31 | } |
| 32 | |
| 33 | InputFormat to_input_format(const std::string &str) |
| 34 | { |
| 35 | auto small_str = to_lower_case(str); |
| 36 | if (small_str.compare("h5") == 0) |
| 37 | return InputFormat::H5; |
| 38 | |
| 39 | if (small_str.compare("directory") == 0 || small_str.compare("dir") == 0) |
| 40 | return InputFormat::DIR; |
| 41 | |
| 42 | throw std::runtime_error("Unsupported input format."); |
| 43 | } |
| 44 | |
| 45 | void print_version(void) |
| 46 | { |
no test coverage detected