D26841: hardware tool: define syntax via syntax arg
Harald Sitter
noreply at phabricator.kde.org
Wed Jan 22 13:25:25 GMT 2020
sitter created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
sitter requested review of this revision.
REVISION SUMMARY
this way the commands syntax is always immediately visible
in the help text.
nothing infurates me more than help that doesn't help, and
previously the help would essentially just end up telling you to
run --commands to actually get help -.-
the existing syntax argument of addPositionArgument will simply
print the syntax help undearneath the usage line, thus giving
immediate access to information on how to use the application
without first having to go through the --commands argument
(--commands still exists for backwards compat)
TEST PLAN
-h now useful
REPOSITORY
R245 Solid
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D26841
AFFECTED FILES
src/tools/solid-hardware/solid-hardware.cpp
To: sitter
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200122/7b627486/attachment.html>
More information about the Kde-frameworks-devel
mailing list