Open sw-dbrown opened 1 year ago
Editing my previous comment...
We may be doing the docstring handling twice.
Possibly the cause is:
where we append the content to the docstring. If previously already added it would be added twice. Needs further testing but I don't currently have the time to dig into it.
Thanks for reporting
Describe the bug
The output of help for commands created with click contains duplicate content and is sometimes oddly formatted.
How To Reproduce
Create a bot with the following listener:
Send the message
dummy --help
. This leads to the following (correct) output on the CLI of the bot:However, in Mattermost the following response is sent:
Expected behavior
The help text defined in the docstring should only be shown once and formatted consistently (ie. not mixing regular and verbatim text)
Operating Environment (please complete the following information):
Additional context
-