/* * Copyright 2008 Aaron Seigo * Copyright 2013 Sebastian Kügler * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2, * or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details * * You should have received a copy of the GNU Library General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include #include "plasmapkg.h" int main(int argc, char **argv) { KLocalizedString description = ki18n("Plasma Package Manager"); const char version[] = "2.0"; KCmdLineArgs::init(argc, argv, "plasmapkg", "plasmapkg", ki18n("Plasma Package Manager"), version, description); KCmdLineOptions options; options.add("h"); options.add("hash ", ki18nc("Do not translate ", "Generate a SHA1 hash for the package at ")); options.add("g"); options.add("global", ki18n("For install or remove, operates on packages installed for all users.")); options.add("t"); options.add("type ", ki18nc("theme, wallpaper, etc. are keywords, but they may be translated, as both versions " "are recognized by the application " "(if translated, should be same as messages with 'package type' context below)", "The type of package, e.g. theme, wallpaper, plasmoid, dataengine, runner, layout-template, etc."), "plasmoid"); //options.add("s"); options.add("i"); options.add("install ", ki18nc("Do not translate ", "Install the package at ")); options.add("s"); options.add("show ", ki18nc("Do not translate ", "Show information of package ")); options.add("u"); options.add("upgrade ", ki18nc("Do not translate ", "Upgrade the package at ")); options.add("l"); options.add("list", ki18n("List installed packages")); options.add("list-types", ki18n("lists all known Package types that can be installed")); options.add("r"); options.add("remove ", ki18nc("Do not translate ", "Remove the package named ")); options.add("p"); options.add("packageroot ", ki18n("Absolute path to the package root. If not supplied, then the standard data directories for this KDE session will be searched instead.")); KCmdLineArgs::addCmdLineOptions( options ); Plasma::PlasmaPkg app(argc, argv); return app.exec(); }