<table><tr><td style="">marten created this revision.<br />marten added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</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/D9079" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The "--kio", "--ubi" and "--files"options (or their short equivalents) have no description text set. This does not affect their functionality, but the options are not displayed correctly if the "--help" option is used:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="console" 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);"><span style="color: #000080">$ bluedevil-sendfile --help</span>
<span style="color: #808080">Usage: bluedevil-sendfile [options]</span>
<span style="color: #808080">Bluetooth Send File Wizard</span>
<span style="color: #808080"></span>
<span style="color: #808080">Options:</span>
<span style="color: #808080"> --kio, -k <bluetooth://address> --ubi, -u <ubi> --files, -f <files> -h, --help Displays this help.</span>
<span style="color: #808080"> -v, --version Displays version information.</span>
<span style="color: #808080"> --author Show author information.</span>
<span style="color: #808080"> --license Show licence information.</span>
<span style="color: #808080"> --desktopfile <file name> The base file name of the desktop entry for</span>
<span style="color: #808080"> this application.</span></pre></div>
<p>Setting a description for these options displays the help correctly:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="console" 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);"><span style="color: #000080">$ bluedevil-sendfile --help</span>
<span style="color: #808080">Usage: bluedevil-sendfile [options]</span>
<span style="color: #808080">Bluetooth Send File Wizard</span>
<span style="color: #808080"></span>
<span style="color: #808080">Options:</span>
<span style="color: #808080"> --kio, -k <bluetooth://address> Specify receiving device by MAC address.</span>
<span style="color: #808080"> --ubi, -u <ubi> Specify receiving device by UBI path.</span>
<span style="color: #808080"> --files, -f <files> Files to be sent.</span>
<span style="color: #808080"> -h, --help Displays this help.</span>
<span style="color: #808080"> -v, --version Displays version information.</span>
<span style="color: #808080"> --author Show author information.</span>
<span style="color: #808080"> --license Show licence information.</span>
<span style="color: #808080"> --desktopfile <file name> The base file name of the desktop entry for</span>
<span style="color: #808080"> this application.</span></pre></div>
<p>This is really a problem with QCommandLineParser or something associated with it, but in the interests of good documentation there should be a description for the options anyway.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Built bluedevil-sendfile with these changes, observed correct "--help" output as above.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R97 Bluedevil</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9079" rel="noreferrer">https://phabricator.kde.org/D9079</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/sendfile/main.cpp</div></div></div><br /><div><strong>To: </strong>marten, Plasma<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>