Add help option to plasmapkg

This commit is contained in:
Sebastian Kügler 2013-10-23 13:07:43 +02:00
parent 701a7d0790
commit 3665e3b382

View File

@ -34,6 +34,7 @@ int main(int argc, char **argv)
app.setApplicationVersion(version);
parser.addVersionOption();
parser.addHelpOption();
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() << "g" << "global", i18n("For install or remove, operates on packages installed for all users.")));