template<typename Indent = traits::integral_constant<std::size_t{4}>, typename DescColumnOffset = traits::integral_constant<Indent{} * 2>, typename LineFormatter = help_formatter_component::default_line_formatter<Indent{}>, typename PreambleFormatter = help_formatter_component::default_preamble_formatter, typename AddendumFormatter = help_formatter_component::default_addendum_formatter>
class arg_router::policy::default_help_formatter_t< Indent, DescColumnOffset, LineFormatter, PreambleFormatter, AddendumFormatter >
Default help formatter, used when none is specified when defining a help node.
- Template Parameters
-
Indent | Number of spaces per 'level' of indentation, defaults to 4 |
DescColumnOffset | Minimum number of description columns remaining in a terminal line needed to attempt proper line breaks i.e. if it is less than DescColumnOffset then the output just overflows onto the next line, defaults to 8 |
LineFormatter | Line formatter type |
PreambleFormatter | Controls preamble formatting i.e. the 'intro' part of the output that goes before the argument output |
AddendumFormatter | Controls addendum formatting i.e. the part of the output that goes after the argument output |
Definition at line 232 of file default_help_formatter.hpp.
template<typename Indent = traits::integral_constant<std::size_t{4}>, typename DescColumnOffset = traits::integral_constant<Indent{} * 2>, typename LineFormatter = help_formatter_component::default_line_formatter<Indent{}>, typename PreambleFormatter = help_formatter_component::default_preamble_formatter, typename AddendumFormatter = help_formatter_component::default_addendum_formatter>
template<typename Node , typename HelpNode , bool Flatten>
Generates the help string.
Recurses through the parse tree, starting at Node, at compile time to build a string representation of it. The program name, version, and info are always generated if the policies are available.
- Template Parameters
-
Node | The node type to begin help output generation from (typically the root) |
HelpNode | Parent help node |
Flatten | True to display all nested help data |
- Parameters
-
stream | Output stream to write the output to |
Definition at line 252 of file default_help_formatter.hpp.
template<typename Indent = traits::integral_constant<std::size_t{4}>, typename DescColumnOffset = traits::integral_constant<Indent{} * 2>, typename LineFormatter = help_formatter_component::default_line_formatter<Indent{}>, typename PreambleFormatter = help_formatter_component::default_preamble_formatter, typename AddendumFormatter = help_formatter_component::default_addendum_formatter>
template<typename Node , typename HelpNode , bool Flatten>
Overload for runtime_help_data.
- Template Parameters
-
Node | The node type to begin help output generation from (typically the root) |
HelpNode | Parent help node |
Flatten | True to display all nested help data |
- Parameters
-
stream | Output stream to write the output to |
help_data | Parent runtime help data |
Definition at line 266 of file default_help_formatter.hpp.