Skip to content

Commit

Permalink
Use the same deprecated label as in Click.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed May 13, 2023
1 parent 151123e commit c2b8bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloup/formatting/_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit c2b8bf3

Please sign in to comment.