| 112 | } |
| 113 | |
| 114 | char* getCmdOption(char** begin, char** end, const std::string& option) |
| 115 | { |
| 116 | char** itr = std::find(begin, end, option); |
| 117 | if(itr != end and ++itr != end) |
| 118 | { |
| 119 | return *itr; |
| 120 | } |
| 121 | |
| 122 | return nullptr; |
| 123 | } |
| 124 | |
| 125 | bool cmdOptionExists(char** begin, char** end, const std::string& option) |
| 126 | { |