Skip to content

Fix #155: Wrap help strings neatly

Raymond Toy requested to merge issue-155-wrap-help-strings into master

For the description for each switch neatly wrap the lines.

This isn't the best but works reasonably well. From the description string, extract all the words, where a word is some sequence of characters separated by whitespace.

Then take that list and print each word followed by a space. Insert a newline as needed to wrap the line.

Merge request reports