21 namespace seqan3::detail
35 class format_man :
public format_help_base<format_man>
38 using base_type = format_help_base<format_man>;
47 format_man() =
default;
48 format_man(format_man
const & pf) =
default;
49 format_man & operator=(format_man
const & pf) =
default;
50 format_man(format_man &&) =
default;
51 format_man & operator=(format_man &&) =
default;
52 ~format_man() =
default;
67 std::transform(meta.app_name.begin(), meta.app_name.end(), out, [] (
unsigned char c) {
return std::toupper(c); });
69 std::transform(meta.app_name.begin(), meta.app_name.end(), out, [] (
unsigned char c) {
return std::tolower(c); });
70 std::cout <<
" " << meta.version <<
"\" \"" << meta.man_page_title <<
"\"\n";
74 << meta.app_name <<
" \\- " << meta.short_description <<
std::endl;
86 is_first_in_section =
true;
95 is_first_in_section =
true;
104 void print_line(
std::string const & text,
bool const line_is_paragraph)
106 if (!is_first_in_section && line_is_paragraph)
108 else if (!is_first_in_section && !line_is_paragraph)
112 is_first_in_section =
false;
129 is_first_in_section =
false;
136 if ((!
empty(meta.short_copyright)) || (!
empty(meta.long_copyright)) || (!
empty(meta.citation)))
140 if (!
empty(meta.short_copyright))
141 std::cout <<
"\\fB" << meta.app_name <<
" Copyright:\\fR " << meta.short_copyright <<
"\n.br\n";
143 std::cout <<
"\\fBSeqAn Copyright:\\fR 2006-2015 Knut Reinert, FU-Berlin; released under the 3-clause BSDL.\n.br\n";
145 if (!
empty(meta.citation))
146 std::cout <<
"\\fBIn your academic works please cite:\\fR " << meta.citation <<
"\n.br\n";
148 if (!
empty(meta.long_copyright))
149 std::cout <<
"For full copyright and/or warranty information see \\fB--copyright\\fR.\n";
154 bool is_first_in_section{
true};