Change in kio[master]: kioexec: use kio version number; add --help and --version
David Faure (Code Review)
noreply at kde.org
Tue Dec 30 08:39:24 UTC 2014
David Faure has uploaded a new change for review.
https://gerrit.vesnicky.cesnet.cz/r/283
Change subject: kioexec: use kio version number; add --help and --version
......................................................................
kioexec: use kio version number; add --help and --version
Change-Id: I4f93c28004d422ba874d1212ac80ca29b8e9407c
---
M src/kioexec/main.cpp
1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://gerrit.vesnicky.cesnet.cz:29418/kio refs/changes/83/283/1
diff --git a/src/kioexec/main.cpp b/src/kioexec/main.cpp
index 829d3f9..c61ea59 100644
--- a/src/kioexec/main.cpp
+++ b/src/kioexec/main.cpp
@@ -20,6 +20,7 @@
*/
#include "main.h"
+#include "kio_version.h"
#include <QtCore/QFile>
#include <QtCore/Q_PID>
@@ -270,8 +271,8 @@
int main( int argc, char **argv )
{
QApplication app( argc, argv);
- KAboutData aboutData( "kioexec", i18n("KIOExec"),
- "111.111", i18n(description), KAboutLicense::GPL,
+ KAboutData aboutData( "kioexec", i18n("KIOExec"), KIO_VERSION_STRING,
+ i18n(description), KAboutLicense::GPL,
i18n("(c) 1998-2000,2003 The KFM/Konqueror Developers"));
aboutData.addAuthor(i18n("David Faure"),QString(), "faure at kde.org");
aboutData.addAuthor(i18n("Stephan Kulow"),QString(), "coolo at kde.org");
@@ -281,6 +282,8 @@
KAboutData::setApplicationData(aboutData);
QCommandLineParser parser;
+ parser.addHelpOption();
+ parser.addVersionOption();
parser.addOption(QCommandLineOption(QStringList() << "tempfiles" , i18n("Treat URLs as local files and delete them afterwards")));
parser.addOption(QCommandLineOption(QStringList() << "suggestedfilename <file name>" , i18n("Suggested file name for the downloaded file")));
parser.addPositionalArgument("command", i18n("Command to execute"));
--
To view, visit https://gerrit.vesnicky.cesnet.cz/r/283
To unsubscribe, visit https://gerrit.vesnicky.cesnet.cz/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f93c28004d422ba874d1212ac80ca29b8e9407c
Gerrit-PatchSet: 1
Gerrit-Project: kio
Gerrit-Branch: master
Gerrit-Owner: David Faure <faure at kde.org>
Gerrit-Reviewer: Andreas Hartmetz <ahartmetz at gmail.com>
More information about the Kde-frameworks-devel
mailing list