X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmain.cpp;h=7b53e653b2a69c14b044e7b91e595b999bc13fb4;hb=05b414a8e0ea4cefe3b14ea2b6ac5340d12ea1d4;hp=a225c4ef5b1c1fada4b380894db3842e843a3238;hpb=68264d0d1fe17ffb45b5e0cab8d24ca4d4e70bd0;p=kdenlive diff --git a/src/main.cpp b/src/main.cpp index a225c4ef..7b53e653 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,6 +54,7 @@ int main(int argc, char *argv[]) KCmdLineOptions options; options.add("mlt-path ", ki18n("Set the path for MLT environment")); options.add("+[file]", ki18n("Document to open")); //new + options.add("i ", ki18n("Comma separated list of clips to add")); //new KCmdLineArgs::addCmdLineOptions(options); //new KApplication app; @@ -74,13 +75,13 @@ int main(int argc, char *argv[]) } } else { KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); //new - + QString clipsToLoad = args->getOption("i"); QString mltPath = args->getOption("mlt-path"); KUrl url; if (args->count()) { url = args->url(0); } - window = new MainWindow(mltPath, url); + window = new MainWindow(mltPath, url, clipsToLoad); window->show(); args->clear();