17namespace sharg::detail
33class format_man :
public format_help_base<format_man>
36 using base_type = format_help_base<format_man>;
45 format_man() =
default;
46 format_man(format_man
const & pf) =
default;
47 format_man & operator=(format_man
const & pf) =
default;
48 format_man(format_man &&) =
default;
49 format_man & operator=(format_man &&) =
default;
50 ~format_man() =
default;
55 bool const advanced =
false) :
56 base_type{names, version_updates, advanced} {};
72 return std::toupper(c);
80 return std::tolower(c);
82 std::cout <<
" " << meta.version <<
"\" \"" << meta.man_page_title <<
"\"\n";
85 std::cout <<
".SH NAME\n" << meta.app_name <<
" \- " << meta.short_description <<
std::endl;
100 return std::toupper(c);
103 is_first_in_section =
true;
112 is_first_in_section =
true;
121 void print_line(
std::string const & text,
bool const line_is_paragraph)
123 if (!is_first_in_section && line_is_paragraph)
125 else if (!is_first_in_section && !line_is_paragraph)
129 is_first_in_section =
false;
143 std::cout <<
".TP\n" << term <<
"\n" << desc <<
"\n";
144 is_first_in_section =
false;
159 return "\fB" + str +
"\fR";
163 bool is_first_in_section{
true};
update_notifications
Indicates whether application allows automatic update notifications by the sharg::parser.
Definition: auxiliary.hpp:29