18namespace sharg::detail
55 bool const advanced =
false) :
56 base_type{names, version_updates, advanced} {};
141 return std::toupper(c);
224 for (
auto it = str.
begin(); it != str.
end(); ++it)
230 assert(it != str.
end());
238 assert(it != str.
end());
283 for (
unsigned i = 0; i < text.
size(); ++i)
291 if (i + 1 == text.
size())
297 if (text[i + 1] ==
'\\' || text[i + 1] ==
'-')
304 if (i + 2 == text.
size())
311 if (text[i + 1] ==
'f')
313 if (text[i + 2] ==
'B' || text[i + 2] ==
'I' || text[i + 2] ==
'P')
341 for (
auto it = tokens.begin(); it != tokens.end(); ++it)
343 if (it == tokens.begin())
360 fill_n(out, tab,
' ');
389 friend struct ::sharg::detail::test_accessor;
421 print_line(
"Try -h or --help for more information.\n",
true);
472 R
"(Copyright (c) 2006-2024, Knut Reinert & Freie Universität Berlin
473Copyright (c) 2016-2024, Knut Reinert & MPI für molekulare Genetik
476Redistribution and use in source and binary forms, with or without
477modification, are permitted provided that the following conditions are met:
479 * Redistributions of source code must retain the above copyright
480 notice, this list of conditions and the following disclaimer.
481 * Redistributions in binary form must reproduce the above copyright
482 notice, this list of conditions and the following disclaimer in the
483 documentation and/or other materials provided with the distribution.
484 * Neither the name of Knut Reinert or the FU Berlin nor the names of
485 its contributors may be used to endorse or promote products derived
486 from this software without specific prior written permission.
488THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
489AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
490IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
491ARE DISCLAIMED. IN NO EVENT SHALL KNUT REINERT OR THE FU BERLIN BE LIABLE
492FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
493DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
494SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
495CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
496LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
497OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
510 +
"Displaying short copyright information instead:\n")
519 <<
in_bold(
"This program contains SeqAn code licensed under the following terms:\n")
521 << seqan_license <<
'\n';
update_notifications
Indicates whether application allows automatic update notifications by the sharg::parser.
Definition auxiliary.hpp:26
bool stdout_is_terminal()
Check whether the standard output is interactive.
Definition terminal.hpp:48
unsigned get_terminal_width()
Retrieve size of terminal.
Definition terminal.hpp:86
Checks if program is run interactively and retrieves dimensions of terminal (Transferred from seqan2)...
Forward declares sharg::detail::test_accessor.