Commit d1dec789 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

addVersionOption()/addHelpOption() already adds by KAboutData::setApplicationData

parent 491f928a
...@@ -74,8 +74,6 @@ int main(int argc, char *argv[]) ...@@ -74,8 +74,6 @@ int main(int argc, char *argv[])
app.setWindowIcon(QIcon::fromTheme(QStringLiteral(APP_NAME))); app.setWindowIcon(QIcon::fromTheme(QStringLiteral(APP_NAME)));
QCommandLineParser options; QCommandLineParser options;
options.addHelpOption();
options.addVersionOption();
options.addPositionalArgument(QStringLiteral("url"), i18n("Path or URL to scan"), i18n("[url]")); options.addPositionalArgument(QStringLiteral("url"), i18n("Path or URL to scan"), i18n("[url]"));
about.setupCommandLine(&options); about.setupCommandLine(&options);
options.process(app); options.process(app);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment