| 111 | |
| 112 | template <typename T> |
| 113 | std::string EnumOption<T>::help() const |
| 114 | { |
| 115 | std::stringstream msg; |
| 116 | msg << "--" + this->name() + "={"; |
| 117 | |
| 118 | for (const auto &value : _allowed_values) |
| 119 | { |
| 120 | msg << value << ","; |
| 121 | } |
| 122 | |
| 123 | msg << "} - " << this->_help; |
| 124 | |
| 125 | return msg.str(); |
| 126 | } |
| 127 | |
| 128 | template <typename T> |
| 129 | inline const T &EnumOption<T>::value() const |