| 240 | //! If it does not: return false. |
| 241 | template <typename T> |
| 242 | bool getAndDelOption(Arguments& arguments, const std::string& option, T& value) |
| 243 | { |
| 244 | const auto match = arguments.find(option); |
| 245 | if (match != arguments.end()) |
| 246 | { |
| 247 | value = stringToValue<T>(match->second); |
| 248 | arguments.erase(match); |
| 249 | return true; |
| 250 | } |
| 251 | |
| 252 | return false; |
| 253 | } |
| 254 | |
| 255 | //! Check if input option exists in input arguments. |
| 256 | //! If it does: return false in value, erase the argument and return true. |
no test coverage detected