adapt to api change

This commit is contained in:
Marco Martin 2013-08-28 21:08:23 +02:00
parent e00070da7e
commit 68a693af67
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ int main(int argc, char **argv)
app.setApplicationVersion(version); app.setApplicationVersion(version);
parser->addVersionOption(); parser->addVersionOption();
parser->addHelpOption(description); parser->setApplicationDescription(description);
parser->addOption(QCommandLineOption(QStringList() << "s" << "show", i18nc("Do not translate <name>", "Show plugins"), "name")); parser->addOption(QCommandLineOption(QStringList() << "s" << "show", i18nc("Do not translate <name>", "Show plugins"), "name"));

View File

@ -34,7 +34,7 @@ int main(int argc, char **argv)
app.setApplicationVersion(version); app.setApplicationVersion(version);
parser.addVersionOption(); parser.addVersionOption();
parser.addHelpOption(description); parser.setApplicationDescription(description);
parser.addOption(QCommandLineOption(QStringList() << "h" << "hash", i18nc("Do not translate <path>", "Generate a SHA1 hash for the package at <path>"), "path")); parser.addOption(QCommandLineOption(QStringList() << "h" << "hash", i18nc("Do not translate <path>", "Generate a SHA1 hash for the package at <path>"), "path"));
parser.addOption(QCommandLineOption(QStringList() << "g" << "global", i18n("For install or remove, operates on packages installed for all users."))); parser.addOption(QCommandLineOption(QStringList() << "g" << "global", i18n("For install or remove, operates on packages installed for all users.")));
parser.addOption(QCommandLineOption(QStringList() << "type", parser.addOption(QCommandLineOption(QStringList() << "type",

View File

@ -39,7 +39,7 @@ int main(int argc, char** argv)
QStringLiteral("Enable QML Javascript debugger")); QStringLiteral("Enable QML Javascript debugger"));
parser.addVersionOption(); parser.addVersionOption();
parser.addHelpOption(description); parser.setApplicationDescription(description);
parser.addOption(dbg); parser.addOption(dbg);
parser.process(app); parser.process(app);