| 149 | |
| 150 | |
| 151 | void HelpFormatter::formatOptions(std::ostream& ostr) const |
| 152 | { |
| 153 | int optWidth = calcIndent(); |
| 154 | for (OptionSet::Iterator it = _options.begin(); it != _options.end(); ++it) |
| 155 | { |
| 156 | formatOption(ostr, *it, optWidth); |
| 157 | if (_indent < optWidth) |
| 158 | { |
| 159 | ostr << '\n' << std::string(_indent, ' '); |
| 160 | formatText(ostr, it->description(), _indent, _indent); |
| 161 | } |
| 162 | else |
| 163 | { |
| 164 | formatText(ostr, it->description(), _indent, optWidth); |
| 165 | } |
| 166 | ostr << '\n'; |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | |
| 171 | void HelpFormatter::formatOption(std::ostream& ostr, const Option& option, int width) const |
nothing calls this directly
no test coverage detected