1 #include <KApplication>
3 #include <KCmdLineArgs>
6 #include "mainwindow.h"
8 int main(int argc, char *argv[]) {
9 KAboutData aboutData("kdenlive", "kdenlive",
10 ki18n("Kdenlive"), "1.0",
11 ki18n("A simple text area which can load and save."),
12 KAboutData::License_GPL,
13 ki18n("Copyright (c) 2007 Developer"));
14 KCmdLineArgs::init(argc, argv, &aboutData);
16 KCmdLineOptions options; //new
17 options.add("+[file]", ki18n("Document to open")); //new
18 KCmdLineArgs::addCmdLineOptions(options); //new
22 MainWindow* window = new MainWindow();
25 KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); //new
26 if (args->count()) { //new
27 window->openFile(args->url(0)); //new