<table><tr><td style="">yuyichao added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28704">View Revision</a></tr></table><br /><div><div><p>That's possible. This appears to be added (back?) with <a href="https://code.qt.io/cgit/qt/qtbase.git/commit/?id=341c8b9cd08" class="remarkup-link" target="_blank" rel="noreferrer">https://code.qt.io/cgit/qt/qtbase.git/commit/?id=341c8b9cd08</a> last May which is newer than the 5.12 branch point it seems. My <tt style="background: #ebebeb; font-size: 13px;">kalarm --help</tt> (as well as most other KDE/Qt programs) shows (a variant of),</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Usage: kalarm [options] [message]
KAlarm

Options:
  -h, --help                         Displays help on commandline options.
  --help-all                         Displays help including Qt specific
                                     options.
  -v, --version                      Displays version information.</pre></div>

<p>which is why I was surprised that <tt style="background: #ebebeb; font-size: 13px;">kalarm --help-all</tt> throws no error and just starts normally as if I've passed in nothing. I assume your <tt style="background: #ebebeb; font-size: 13px;">--help</tt> does not include a <tt style="background: #ebebeb; font-size: 13px;">--help-all</tt> option. Searching the doc this appears to be added in 5.14. <a href="https://doc.qt.io/archives/qt-5.13/qcommandlineparser.html#addHelpOption" class="remarkup-link" target="_blank" rel="noreferrer">5.13 doc</a> doesn't have it. (Qt doesn't seem to have a stable link for the latest specific version so <a href="https://doc.qt.io/qt-5/qcommandlineparser.html#addHelpOption" class="remarkup-link" target="_blank" rel="noreferrer">https://doc.qt.io/qt-5/qcommandlineparser.html#addHelpOption</a> should show the 5.14 doc before 5.15 is released)</p>

<p>Thinking about it, I think this is an argument to use <tt style="background: #ebebeb; font-size: 13px;">process</tt> instead of handling it manually. Qt clearly make changes to what builtin options there are....</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R205 KAlarm</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28704">https://phabricator.kde.org/D28704</a></div></div><br /><div><strong>To: </strong>yuyichao, djarvie, lbeltrame<br /><strong>Cc: </strong>kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>