| 41 | } // namespace |
| 42 | |
| 43 | bool RunnerOptions::AddInput(const std::string& filePath, InputMode mode) |
| 44 | { |
| 45 | if (this->inputMode == InputMode::kUnset) { |
| 46 | this->inputMode = mode; |
| 47 | } |
| 48 | |
| 49 | if (this->inputMode != mode) { |
| 50 | std::cerr << "Error: binary and image inputs are mutually exclusive\n"; |
| 51 | return false; |
| 52 | } |
| 53 | |
| 54 | this->inputs.push_back(filePath); |
| 55 | return true; |
| 56 | } |
| 57 | |
| 58 | bool RunnerOptions::Validate(const CliOptionsConfig& config) const |
| 59 | { |