https://bugs.kde.org/show_bug.cgi?id=450299

Robert Spillner <robert.spill...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Debian stable               |Compiled Sources
                 CC|                            |robert.spill...@gmx.de

--- Comment #1 from Robert Spillner <robert.spill...@gmx.de> ---
Probably better to have the filename as a required parameter. Still, this bug
is trivial and should be fixed.

diff --git a/konsolekalendar/main.cpp b/konsolekalendar/main.cpp
index ef17719..f47eea2 100644
--- a/konsolekalendar/main.cpp
+++ b/konsolekalendar/main.cpp
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
     parser.addOption(QCommandLineOption(QStringList() <<
QStringLiteral("add"), i18n("Insert an incidence into the calendar")));
     parser.addOption(QCommandLineOption(QStringList() <<
QStringLiteral("change"), i18n("Modify an existing incidence")));
     parser.addOption(QCommandLineOption(QStringList() <<
QStringLiteral("delete"), i18n("Remove an existing incidence")));
-    parser.addOption(QCommandLineOption(QStringList() <<
QStringLiteral("create <filename>"), i18n("Create new Akonadi Resource for
file")));
+    parser.addOption(QCommandLineOption(QStringList() <<
QStringLiteral("create"), i18n("Create new Akonadi Resource for file"),
QStringLiteral("filename")));
     parser.addOption(
         QCommandLineOption(QStringList() << QStringLiteral("import"),
i18n("Import this calendar to main calendar"),
QStringLiteral("[import-file]")));
     parser.addOption(QCommandLineOption(QStringList() <<
QStringLiteral("list-calendars"), i18n("List available calendars")));

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to