std::vector<const char*> see_also;
value_t min, max;
- std::vector<std::string> enum_allowed;
+ std::vector<const char*> enum_allowed;
bool safe;
tags.push_back(tag);
return *this;
}
- Option& add_tag(std::initializer_list<const char*> ts) {
+ Option& add_tag(const std::initializer_list<const char*>& ts) {
tags.insert(tags.end(), ts);
return *this;
}
services.push_back(service);
return *this;
}
- Option& add_service(std::initializer_list<const char*> ss) {
+ Option& add_service(const std::initializer_list<const char*>& ss) {
services.insert(services.end(), ss);
return *this;
}
see_also.push_back(t);
return *this;
}
- Option& add_see_also(std::initializer_list<const char*> ts) {
+ Option& add_see_also(const std::initializer_list<const char*>& ts) {
see_also.insert(see_also.end(), ts);
return *this;
}
return *this;
}
- Option& set_enum_allowed(const std::vector<std::string> allowed)
+ Option& set_enum_allowed(const std::initializer_list<const char*>& allowed)
{
- enum_allowed = allowed;
+ enum_allowed.insert(enum_allowed.end(), allowed);
return *this;
}