File indexing completed on 2024-05-12 05:21:25
0001 /* 0002 This file is part of KOrganizer. 0003 0004 SPDX-FileCopyrightText: 1997-1999 Preston Brown <pbrown@kde.org> 0005 SPDX-FileCopyrightText: 2001, 2003 Cornelius Schumacher <schumacher@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0008 */ 0009 0010 #pragma once 0011 0012 #include <KLocalizedString> 0013 #include <QCommandLineParser> 0014 0015 static void korganizer_options(QCommandLineParser *parser) 0016 { 0017 parser->addOption( 0018 QCommandLineOption(QStringList() << QStringLiteral("i") << QStringLiteral("import"), i18n("Import the specified files as separate calendars"))); 0019 parser->addOption( 0020 QCommandLineOption(QStringList() << QStringLiteral("m") << QStringLiteral("merge"), i18n("Merge the specified files into an existing calendar"))); 0021 parser->addOption(QCommandLineOption({QStringLiteral("view")}, i18n("Display the specified incidence (by URL)"), QStringLiteral("url"))); 0022 0023 parser->addPositionalArgument(QStringLiteral("calendars"), 0024 i18n("Calendar files or urls. Unless -i or -m is explicitly specified, " 0025 "the user will be asked whether to import or merge"), 0026 QStringLiteral("[calendar...]")); 0027 #ifdef WITH_KUSERFEEDBACK 0028 parser->addOption(QCommandLineOption(QStringLiteral("feedback"), i18n("Lists the available options for user feedback"))); 0029 #endif 0030 }