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} {};
69 return std::toupper(c);
77 return std::tolower(c);
79 std::cout <<
" " << meta.version <<
"\" \"" << meta.man_page_title <<
"\"\n";
82 std::cout <<
".SH NAME\n" << meta.app_name <<
" \- " << meta.short_description <<
std::endl;
97 return std::toupper(c);
100 is_first_in_section =
true;
109 is_first_in_section =
true;
118 void print_line(
std::string const & text,
bool const line_is_paragraph)
120 if (!is_first_in_section && line_is_paragraph)
122 else if (!is_first_in_section && !line_is_paragraph)
126 is_first_in_section =
false;
140 std::cout <<
".TP\n" << term <<
"\n" << desc <<
"\n";
141 is_first_in_section =
false;
156 return "\fB" + str +
"\fR";
160 bool is_first_in_section{
true};
update_notifications
Indicates whether application allows automatic update notifications by the sharg::parser.
Definition auxiliary.hpp:26