Skip to content

Commit

Permalink
Merge pull request #153 from kdeldycke/align-deprecated-flag
Browse files Browse the repository at this point in the history
Use the same `(Deprecated)` label as in Click
  • Loading branch information
janluke authored May 13, 2023
2 parents 151123e + c2b8bf3 commit 14ae6d6
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 14ae6d6

Please sign in to comment.