Help Lines Wrap Incorrectly
The help lines I have that are long enough to wrap only ever put the last word on the next line. If you replace the if statement at line 774 of lib/help/formatter.js with the following it should fix it.
if (wrapEnd !== line.length && delimiters.indexOf(line[wrapEnd - 1]) < 0) {
wrapEnd = wrapStart + (re.exec(line.substring(wrapStart, wrapEnd)) || {}).index + 1;
}
This should put the wrap point at the last delimiter in the desired segment instead of the last delimiter in the entire string. Also I think I improved the condition to determine if the last character in the substring is a delimiter.
is it https://github.com/nodeca/argparse/commit/6afc84fe35acabfa72f3455b661d8162a9b5dd3f ?
We just fixed a couple of minor bugs, but not released yet.
I saw that npm wasn't quite up to date and copied what's currently pushed to github it into my node_modules directory before submitting the issue. The behavior of the help lines changed from pushing the same line several times to the behavior I described above where only the last word went to a new line.
Fixed. Thanks for your response.
Published 0.1.1. Please, notify if problem still exists. Thanks for your help.