File indexing completed on 2024-05-19 05:14:37
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <KLocalizedString> 0010 #include <QCommandLineOption> 0011 #include <QCommandLineParser> 0012 0013 static void kaddressbook_options(QCommandLineParser *parser) 0014 { 0015 parser->addOption(QCommandLineOption(QStringLiteral("import"), i18n("Import the given file"))); 0016 0017 parser->addOption(QCommandLineOption(QStringLiteral("newcontact"), i18n("Open the 'New Contact' dialog"))); 0018 0019 parser->addOption(QCommandLineOption(QStringLiteral("view"), i18n("Display the specified contact (by URL)"), QStringLiteral("url"))); 0020 0021 parser->addPositionalArgument(QStringLiteral("urls"), i18n("Files or URLs. The user will be asked whether to import."), QStringLiteral("[urls...]")); 0022 0023 #ifdef WITH_KUSERFEEDBACK 0024 parser->addOption(QCommandLineOption(QStringLiteral("feedback"), i18n("Lists the available options for user feedback"))); 0025 #endif 0026 }