diff --git a/cloup/formatting/_formatter.py b/cloup/formatting/_formatter.py index 24c95ae..041b18e 100644 --- a/cloup/formatting/_formatter.py +++ b/cloup/formatting/_formatter.py @@ -185,7 +185,9 @@ def write_command_help_text(self, cmd: click.Command) -> None: if help_text and click_version_ge_8_1: help_text = inspect.cleandoc(help_text) if cmd.deprecated: - help_text = "(DEPRECATED) " + help_text + # Use the same label as Click: + # https://github.com/pallets/click/blob/b0538df/src/click/core.py#L1331 + help_text = "(Deprecated) " + help_text if help_text: self.write_paragraph() with self.indentation():