| 188 | } |
| 189 | |
| 190 | static bool is_argument_spec(std::string const& token) { |
| 191 | if (token.empty()) |
| 192 | return false; |
| 193 | |
| 194 | if (token[0]=='<' && token[token.size()-1]=='>') |
| 195 | return true; |
| 196 | |
| 197 | if (std::all_of(token.begin(), token.end(), &::isupper)) |
| 198 | return true; |
| 199 | |
| 200 | return false; |
| 201 | } |
| 202 | |
| 203 | template <typename I> |
| 204 | std::vector<std::string> longOptions(I iter, I end) { |