| 595 | } |
| 596 | |
| 597 | static inline void formatOption(QTextStream &str, |
| 598 | const QString &opt, const QString &parm, const QString &description, |
| 599 | int optionIndentation, int descriptionIndentation) |
| 600 | { |
| 601 | int remainingIndent = descriptionIndentation - optionIndentation - opt.size(); |
| 602 | indent(str, optionIndentation); |
| 603 | str << opt; |
| 604 | if (!parm.isEmpty()) { |
| 605 | str << " <" << parm << '>'; |
| 606 | remainingIndent -= 3 + parm.size(); |
| 607 | } |
| 608 | indent(str, qMax(1, remainingIndent)); |
| 609 | str << description << '\n'; |
| 610 | } |
| 611 | |
| 612 | /*! |
| 613 | Formats the startup options of the plugin manager for command line help. |
no test coverage detected