From ad8067350fbc90dafc6039ea662b4f2b144a16d2 Mon Sep 17 00:00:00 2001 From: timonrieger Date: Wed, 21 Jan 2026 21:15:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20command=20help=20retrie?= =?UTF-8?q?val=20in=20`get=5Fdocs=5Ffor=5Fclick`=20to=20use=20`command=5Fo?= =?UTF-8?q?bj.help`=20instead=20of=20`get=5Fshort=5Fhelp=5Fstr()`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typer/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typer/cli.py b/typer/cli.py index ef83bf87a0..483fbfe644 100644 --- a/typer/cli.py +++ b/typer/cli.py @@ -250,7 +250,7 @@ def get_docs_for_click( command_obj = group.get_command(ctx, command) assert command_obj docs += f"* `{command_obj.name}`" - command_help = command_obj.get_short_help_str() + command_help = command_obj.help if command_help: docs += f": {_parse_html(to_parse, command_help)}" docs += "\n"