A class to construct and print help-pages.
HelpPage constructor
| Param: |
|
|---|
HelpPage constructor
| Param: |
|
|---|
Methods
| __init__(sections[, headers, wrap, pager, ...]) | HelpPage constructor |
| log_error(error[, message]) | Logs the error in bold red |
Attributes
| bold_headers | A dictionary of header: formatted bold header | ||
| command | List of strings to send to the Popen | ||
| formatted_text | A dictionary of header:formatted body text | ||
| formatting | Dictionary of format-name: ANSI code | ||
| headers | The headers for the text | ||
| logger |
|
||
| text | The concatenated and formatted text | ||
| text_wrapper | TextWrapper to fill the text |
Logs the error in bold red
| Param: |
|
|---|
A dictionary of header: formatted bold header
List of strings to send to the Popen
A dictionary of header:formatted body text
Dictionary of format-name: ANSI code
The headers for the text
| Returns: | A logging object. |
|---|
The concatenated and formatted text
TextWrapper to fill the text