You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An example Click command has the following help text:
def convert(input_file_name, output_file_name):
"""
Converts the format of the \033[1minput file\033[0m and stores it in the \033[1moutput file\033[0m
"""
When invoking the --help option for the command the words "input file" and "output file" are displayed with a bold font.
However, the man page generated with python3 setup.py --command-packages=click_man.commands man_pages displays it as [1minput file[0m and [1moutput file[0m.
The text was updated successfully, but these errors were encountered:
This is because \033[1m is related to invoking colors in terminal. Instead of raw declaring of the colors, I'd suggest you assign them to variables first and then wrap particular text arround the color variables.
An example Click command has the following help text:
When invoking the --help option for the command the words "input file" and "output file" are displayed with a bold font.
However, the man page generated with
python3 setup.py --command-packages=click_man.commands man_pages
displays it as[1minput file[0m
and[1moutput file[0m
.The text was updated successfully, but these errors were encountered: