Skip to content

Strip argument documentation from command help text.#4451

Merged
Qalthos merged 1 commit intoansible:mainfrom
Qalthos:click-clean
May 30, 2025
Merged

Strip argument documentation from command help text.#4451
Qalthos merged 1 commit intoansible:mainfrom
Qalthos:click-clean

Conversation

@Qalthos
Copy link
Copy Markdown
Collaborator

@Qalthos Qalthos commented May 30, 2025

Click stops processing docstrings when it encounters a formfeed (\f) character. We can use this to keep the method argument documentation out of the command help syntax.

See https://click.palletsprojects.com/en/stable/documentation/#truncating-help-texts

Click stops processing docstrings when it encounters a formfeed (\f)
character. We can use this to keep the method argument documentation out
of the command help syntax.
@Qalthos Qalthos enabled auto-merge (squash) May 30, 2025 14:53
@Qalthos Qalthos merged commit 62001e6 into ansible:main May 30, 2025
20 of 21 checks passed
@Qalthos Qalthos deleted the click-clean branch July 8, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants