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