We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The space separating the Usage: header from the CLI name and argument schema is highlighted as if it was part of the heading.
Usage:
Given the following minimal Cloup CLI:
from cloup import HelpFormatter, HelpTheme, Context, command, Style, Color SETTINGS = Context.settings( formatter_settings=HelpFormatter.settings( theme=HelpTheme( heading=Style(fg=Color.bright_blue, bold=True, underline=True), ) ) ) @command(context_settings=SETTINGS) def cli(): pass if __name__ == '__main__': cli()
If I run this with the latest version of Cloup, I get the following help screen:
Instead, I expect the first line of the help screen renders like this:
Notice how the space after Usage: is not underlined.
I.e. the first line should not produce:
"\x1b[94m\x1b[1m\x1b[4mUsage: \x1b[0mcloup_heading_highlight.py [OPTIONS]"
But:
"\x1b[94m\x1b[1m\x1b[4mUsage:\x1b[0m cloup_heading_highlight.py [OPTIONS]"
The text was updated successfully, but these errors were encountered:
write_usage
Thanks for reporting!
Sorry, something went wrong.
Thanks @janluke for the quick fix!
Successfully merging a pull request may close this issue.
Bug description
The space separating the
Usage:
header from the CLI name and argument schema is highlighted as if it was part of the heading.To Reproduce
Given the following minimal Cloup CLI:
If I run this with the latest version of Cloup, I get the following help screen:
Expected behavior
Instead, I expect the first line of the help screen renders like this:
Notice how the space after
Usage:
is not underlined.I.e. the first line should not produce:
"\x1b[94m\x1b[1m\x1b[4mUsage: \x1b[0mcloup_heading_highlight.py [OPTIONS]"
But:
"\x1b[94m\x1b[1m\x1b[4mUsage:\x1b[0m cloup_heading_highlight.py [OPTIONS]"
The text was updated successfully, but these errors were encountered: