-
Notifications
You must be signed in to change notification settings - Fork 44
Description
I inadvertently created an argument description that turned out to be 37 characters long. When help is displayed, the description displays as follows:
--lts, -l Download 'Long Term Support' releases[boolean] [default: false]
Personally I think it would look better if the line had a line break inserted via the _renderInLine function in order to keep the description from running into the square bracket. If the description is 38 characters in length, it will render the type and default on a separate line.
A simple change to the _renderInLine function in index.ts, changing this code:
if (leadingWhitespace < targetTextWidth) {
to this:
if (leadingWhitespace < targetTextWidth + 1) {
allows the line to break if the description is the maximum width of the field.