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