aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2015-08-05 10:04:50 +0200
committerDavid Faure <faure@kde.org>2015-08-05 10:04:50 +0200
commit02f66383d8013f4d6a68092d73a7cb5dfd87f9dc (patch)
tree6bd0143b513db8b0154e8d794a624f36b3a8afb4
parent27e145e797a265de93cc1238d6e6ee5d3f3c1998 (diff)
downloadkconfig-02f66383d8013f4d6a68092d73a7cb5dfd87f9dc.tar.gz
kconfig-02f66383d8013f4d6a68092d73a7cb5dfd87f9dc.tar.bz2
finish the port to QCommandLineParser (it has addPositionalArgument now)
-rw-r--r--src/kconf_update/kconf_update.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kconf_update/kconf_update.cpp b/src/kconf_update/kconf_update.cpp
index bd346234..a1c98cb6 100644
--- a/src/kconf_update/kconf_update.cpp
+++ b/src/kconf_update/kconf_update.cpp
@@ -165,7 +165,7 @@ KonfUpdate::~KonfUpdate()
delete m_textStream;
}
-QTextStream &operator<<(QTextStream &stream, const QStringList &lst)
+static QTextStream &operator<<(QTextStream &stream, const QStringList &lst)
{
stream << lst.join(", ");
return stream;
@@ -954,7 +954,7 @@ int main(int argc, char **argv)
parser.addOption(QCommandLineOption(QStringList() << "debug", QCoreApplication::translate("main", "Keep output results from scripts")));
parser.addOption(QCommandLineOption(QStringList() << "testmode", QCoreApplication::translate("main", "For unit tests only: use test directories to stay away from the user's real files")));
parser.addOption(QCommandLineOption(QStringList() << "check", QCoreApplication::translate("main", "Check whether config file itself requires updating"), "update-file"));
- //parser.addOption(QCommandLineOption(QStringList() << "+[file]", QCoreApplication::translate("main", "File to read update instructions from")));
+ parser.addPositionalArgument("files", QCoreApplication::translate("main", "File(s) to read update instructions from"), "[files...]");
// TODO aboutData.addAuthor(ki18n("Waldo Bastian"), KLocalizedString(), "bastian@kde.org");