chalk

main.cpp
1/*
2 * main.cpp - part of KImageShop
3 *
4 * Copyright (c) 1999 Matthias Elter <me@kde.org>
5 * Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 */
20#include <dcopclient.h>
21#include <tdecmdlineargs.h>
22#include <KoApplication.h>
23
24#include "ui/kis_aboutdata.h"
25
26static const TDECmdLineOptions options[] = {
27 { "+[file(s)]", I18N_NOOP("File(s) or URL(s) to open"), 0 },
28 TDECmdLineLastOption
29};
30
31extern "C" KRITA_EXPORT int kdemain(int argc, char **argv)
32{
33 TDECmdLineArgs::init(argc, argv, newChalkAboutData());
34 TDECmdLineArgs::addCmdLineOptions(options);
35
36 KoApplication app;
37
38 if (!app.start())
39 return 1;
40
41 return app.exec();
42}
43