Utils Module
Utils for usage / help text formatters
- author:
 Doug Skrypa
- cli_command_parser.formatting.utils.format_help_entry(usage_parts: StrIter, description: IStrs | None, prefix: str = '', *, lpad: int = 2, usage_cont_indent: int = 2, usage_delim: str = ', ') str[source]
 - Parameters:
 usage_parts¶ – Individual usage parts. That is, for an
Option('--foo', '-f'), separate strings for'--foo FOO'and'-f FOO'.description¶ – The description (
help='...'value) of the Parameter that is being documented.prefix¶ – A prefix to be included on every line (such as when
show_group_tree=True).lpad¶ – Minimum indentation (number of spaces) that should be applied to each line as a prefix. If an explicit
prefixis provided, then the padding will be reduced based on the length of the provided prefix.usage_cont_indent¶ – Continuation indentation to apply when the
usage_partsneed to span multiple lines.usage_delim¶ – The delimiter that should be used to join the
usage_parts.
- Returns:
 The formatted
--helpentry.