diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 1381ab3..543101c 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1475,6 +1475,7 @@ namespace cxxopts stringAppend(result, "\n"); stringAppend(result, start, ' '); startLine = lastSpace + 1; + lastSpace = startLine; } size = 0; }