D19940: always support all command line options
Harald Sitter
noreply at phabricator.kde.org
Thu Mar 21 12:24:07 GMT 2019
sitter created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
sitter requested review of this revision.
REVISION SUMMARY
with the current way options are handled we'd always have a tight lock
between kcrash and drkonqi making it unnecessarily difficult to add
new options because newer kcrashes cannot simply pass them regardless of
drkonqi's version.
e.g.
- drkonqi 5.20 adds --displayName
- kcrash 5.70 adds support for passing --displayName
- kcrash now needs to somehow determine the precise version of drkonqi because passing --displayName to 5.19 or below results in exit1
by having drkonqi ignore unknown options we can eliminate this restriction
as kcrash can then simply always pass all arguments it knows (which it
needs to do for the entire so-series; 5.70 needs to still work with
plasma 5.0 in theory)
NB: 5.x still needs some variant of version checking as kcrash needs to
find out if drkonqi has this new behavior. come 6.x we would be able to
ignore versions entirely in kcrash
TEST PLAN
passing arbitrary cli options no longer causes drkonqi to exit in error
REPOSITORY
R871 DrKonqi
BRANCH
arbitrary-options
REVISION DETAIL
https://phabricator.kde.org/D19940
AFFECTED FILES
src/main.cpp
To: sitter
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190321/177b039a/attachment.html>
More information about the Plasma-devel
mailing list