21namespace seqan3::detail
37class format_man :
public format_help_base<format_man>
40 using base_type = format_help_base<format_man>;
49 format_man() =
default;
50 format_man(format_man
const & pf) =
default;
51 format_man & operator=(format_man
const & pf) =
default;
52 format_man(format_man &&) =
default;
53 format_man & operator=(format_man &&) =
default;
54 ~format_man() =
default;
73 return std::toupper(c);
81 return std::tolower(c);
83 std::cout <<
" " << meta.version <<
"\" \"" << meta.man_page_title <<
"\"\n";
86 std::cout <<
".SH NAME\n" << meta.app_name <<
" \\- " << meta.short_description <<
std::endl;
101 return std::toupper(c);
104 is_first_in_section =
true;
113 is_first_in_section =
true;
122 void print_line(
std::string const & text,
bool const line_is_paragraph)
124 if (!is_first_in_section && line_is_paragraph)
126 else if (!is_first_in_section && !line_is_paragraph)
130 is_first_in_section =
false;
144 std::cout <<
".TP\n" << term <<
"\n" << desc <<
"\n";
145 is_first_in_section =
false;
160 return "\\fB" + str +
"\\fR";
164 bool is_first_in_section{
true};
@ advanced
Definition: auxiliary.hpp:255
Checks if program is run interactively and retrieves dimensions of terminal (Transferred from seqan2)...
Provides SeqAn version macros and global variables.