diff options
author | hjk <hjk@theqtcompany.com> | 2015-09-04 13:53:03 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-09-07 09:30:39 +0000 |
commit | fc19465858d0bc1b70c42fbf3190e96cd68c5351 (patch) | |
tree | 0cb88de4c0ce9006a349b94e9f3b87647fd9294f /src/libs | |
parent | c7bc80ee259ec9686db15b104efd80bb06728a58 (diff) | |
download | qt-creator-fc19465858d0bc1b70c42fbf3190e96cd68c5351.tar.gz |
Split long --help output lines
Looks better aligned.
Change-Id: I2cab4c1382767b2e2489703bea65bd01c71d2ad6
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/extensionsystem/pluginmanager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp index e310efe6f2..0d7b7c8b34 100644 --- a/src/libs/extensionsystem/pluginmanager.cpp +++ b/src/libs/extensionsystem/pluginmanager.cpp @@ -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'; } |