Split long --help output lines

Looks better aligned.

Change-Id: I2cab4c1382767b2e2489703bea65bd01c71d2ad6
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
hjk
2015-09-04 13:53:03 +02:00
parent c7bc80ee25
commit fc19465858

View File

@@ -686,7 +686,12 @@ static inline void formatOption(QTextStream &str,
str << " <" << parm << '>';
remainingIndent -= 3 + parm.size();
}
indent(str, qMax(1, remainingIndent));
if (remainingIndent >= 1) {
indent(str, remainingIndent);
} else {
str << '\n';
indent(str, descriptionIndentation);
}
str << description << '\n';
}