def _format_description(ctx):
"""Format the description for a given `click.Command`.
We parse this as reStructuredText, allowing users to embed rich
information in their help messages if they so choose.
"""
if not ctx.command.help:
return
for line in statemachine.string2lines(
ctx.command.help, tab_width=4, convert_whitespace=True):
yield line
yield ''
评论列表
文章目录