forked from qt-creator/qt-creator
Split long --help output lines
Looks better aligned. Change-Id: I2cab4c1382767b2e2489703bea65bd01c71d2ad6 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -686,7 +686,12 @@ static inline void formatOption(QTextStream &str,
|
|||||||
str << " <" << parm << '>';
|
str << " <" << parm << '>';
|
||||||
remainingIndent -= 3 + parm.size();
|
remainingIndent -= 3 + parm.size();
|
||||||
}
|
}
|
||||||
indent(str, qMax(1, remainingIndent));
|
if (remainingIndent >= 1) {
|
||||||
|
indent(str, remainingIndent);
|
||||||
|
} else {
|
||||||
|
str << '\n';
|
||||||
|
indent(str, descriptionIndentation);
|
||||||
|
}
|
||||||
str << description << '\n';
|
str << description << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user