Summary: | QCommandLineParser: option not defined: "create" | ||
---|---|---|---|
Product: | [Applications] konsolekalendar | Reporter: | felician.nemeth |
Component: | general | Assignee: | Allen Winter <winter> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | felician.nemeth, trent2 |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
felician.nemeth
2022-02-15 12:31:36 UTC
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"))); |