Commented lines in export extern
completions are joined to previous documentation
#7377
Labels
export extern
completions are joined to previous documentation
#7377
Describe the bug
Leaving comments after an argument or flag declaration inside an
export extern
cause incorrect descriptions when using the completions.Consider an extern declaration like so, using the completion results in an incorrect description for
--opt
(Screenshot 1)Comments seem to be allowed, as this produces the expected result (Screenshot 3):
How to reproduce
Expected behavior
Lines that do not start with any argument/ flag names but contain only a comment are not appended to the previous argument's description verbatim (Screenshot 2).
Screenshots
Screenshot 1:
Screenshot 2:
Screenshot 3:
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: