MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / formatOptions

Method formatOptions

base/poco/Util/src/HelpFormatter.cpp:151–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150
151void 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
171void HelpFormatter::formatOption(std::ostream& ostr, const Option& option, int width) const

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
descriptionMethod · 0.45

Tested by

no test coverage detected