Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion click_man/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import os
from distutils.version import LooseVersion
from inspect import cleandoc

import click

Expand Down Expand Up @@ -40,7 +41,7 @@ def generate_man_page(ctx, version=None):
man_page = ManPage(ctx.command_path)
man_page.version = version
man_page.short_help = get_short_help_str(ctx.command)
man_page.description = ctx.command.help
man_page.description = cleandoc(ctx.command.help)
man_page.synopsis = ' '.join(ctx.command.collect_usage_pieces(ctx))
man_page.options = [x.get_help_record(ctx) for x in ctx.command.params if isinstance(x, click.Option)]
commands = getattr(ctx.command, 'commands', None)
Expand Down