Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

hopla.cli.print_header

hopla.cli.print_header(license='CeCILL-B', subtitle='Fast, friendly CLI to submit your jobs')[source]

Print a styled header banner for the hoplacli tool.

Parameters:
licensestr, optional

The license displayed in the header. Default is “CeCILL-B”.

subtitlestr, optional

A secondary line of text displayed below the title. Default is “Fast, friendly CLI to submit you jobs”.

Returns:
None

Notes

  • The header is styled with ANSI escape codes for colors and bold text.

  • The width of the banner adapts to the terminal size (up to 100 characters).

  • Includes a timestamp of when the session started.

  • Uses box-drawing characters for a clean framed look.