14namespace sharg::detail
30class format_man :
public format_help_base<format_man>
33 using base_type = format_help_base<format_man>;
42 format_man() =
default;
43 format_man(format_man
const & pf) =
default;
44 format_man & operator=(format_man
const & pf) =
default;
45 format_man(format_man &&) =
default;
46 format_man & operator=(format_man &&) =
default;
47 ~format_man() =
default;
52 bool const advanced =
false) :
53 base_type{names, version_updates, advanced} {};
61 print_as_uppercase(meta.app_name);
62 std::cout <<
' ' << meta.man_page_section <<
" \"" << meta.date <<
"\" \"";
63 print_as_lowercase(meta.app_name);
64 std::cout <<
' ' << meta.version <<
"\" \"" << meta.man_page_title <<
"\"\n";
67 print_as_lowercase(meta.app_name);
68 std::cout <<
" \\- " << meta.short_description <<
'\n';
77 print_as_uppercase(title);
79 is_first_in_section =
true;
88 is_first_in_section =
true;
97 void print_line(
std::string const & text,
bool const line_is_paragraph)
99 if (!is_first_in_section && line_is_paragraph)
101 else if (!is_first_in_section && !line_is_paragraph)
105 is_first_in_section =
false;
119 std::cout <<
".TP\n" << term <<
'\n' << desc <<
'\n';
120 is_first_in_section =
false;
135 return "\\fB" + str +
"\\fR";
139 bool is_first_in_section{
true};
update_notifications
Indicates whether application allows automatic update notifications by the sharg::parser.
Definition auxiliary.hpp:27