| 209 | } |
| 210 | |
| 211 | Flag::Flag(const std::vector<std::string>& names, const std::string helptext): |
| 212 | _group(*currentFlagGroup), |
| 213 | _names(names), |
| 214 | _helptext(helptext) |
| 215 | { |
| 216 | if (!currentFlagGroup) |
| 217 | error("no flag group defined for {}", *names.begin()); |
| 218 | _group.addFlag(this); |
| 219 | } |
| 220 | |
| 221 | void BoolFlag::set(const std::string& value) |
| 222 | { |