File indexing completed on 2024-04-21 16:31:44

0001 /**
0002  * SPDX-FileCopyrightText: (C) 2003 by Sébastien Laoût <slaout@linux62.org>
0003  * SPDX-License-Identifier: GPL-2.0-or-later
0004  */
0005 
0006 #ifndef BASKET_OPTIONS_H
0007 #define BASKET_OPTIONS_H
0008 
0009 #include <QApplication>
0010 #include <QCommandLineParser>
0011 
0012 #include <KLocalizedString>
0013 
0014 #include "aboutdata.h"
0015 #include "global.h"
0016 
0017 void setupCmdLineOptions(QCommandLineParser *opts)
0018 {
0019     opts->addOption(QCommandLineOption(QStringList() << "d"
0020                                                      << "debug",
0021                                        i18n("Show the debug window")));
0022     opts->addOption(QCommandLineOption(QStringList() << "f"
0023                                                      << "data-folder",
0024                                        i18n("Custom folder to load and save baskets and other application data."),
0025                                        i18nc("Command line help: --data-folder <FOLDER>", "folder")));
0026     opts->addOption(QCommandLineOption("start-hidden",
0027                                        i18n("Automatically hide the main window in the system tray on startup."))); //
0028     opts->addOption(QCommandLineOption(QStringList() << "k"
0029                                                      << "use-drkonqi",
0030                                        i18n("On crash, use the standard KDE crash handler rather than send an email.")));
0031 
0032     opts->addPositionalArgument("file", i18n("Open a basket archive or template."));
0033 }
0034 
0035 #endif // BASKET_OPTIONS_H