2 #include <kcmdlineargs.h>
3 #include <kaboutdata.h>
5 #include <kapplication.h>
8 #include "htmlsearch.h"
11 int main(int argc
, char *argv
[])
13 KAboutData
aboutData( "khtmlindex", "htmlsearch", ki18n("KHtmlIndex"),
15 ki18n("KDE Index generator for help files."));
17 KCmdLineArgs::init(argc
, argv
, &aboutData
);
19 KCmdLineOptions options
;
20 options
.add("lang <lang>", ki18n("The language to index"), "en");
21 KCmdLineArgs::addCmdLineOptions( options
);
26 KCmdLineArgs
*args
= KCmdLineArgs::parsedArgs();
27 search
.generateIndex(args
->getOption("lang"));