Reduce the boilerplate needed for commandLineArgs

Authored by tcanabrava on May 22 2018, 3:06 PM.

Description

Reduce the boilerplate needed for commandLineArgs

Summary:
Use the new initialization syntax plus a initialization vector
to remove the need to call parser->addOption(QCommandLineOption
on every single command line option.

The code now store things in a vector, that is in fact slower
but this should be negligible, and the code is easier to extend
and to read.

Reviewers: Konsole, hindenburg

Reviewed By: Konsole, hindenburg

Subscribers: hindenburg, konsole-devel

Tags: Konsole

Differential Revision: https://phabricator.kde.org/D12966

Details

Committed
hindenburgMay 22 2018, 3:11 PM
Reviewer
Konsole
Differential Revision
D12966: Reduce the boilerplate needed for commandLineArgs
Parents
R319:674de973f9d2: Convert loc() to function and add arguments checks
Branches
Unknown
Tags
Unknown