options.add("+[URL]",ki18n("Document to open. Specify '-' to read from stdin."));
KCmdLineArgs::addCmdLineOptions(options);
KApplicationapp;
QApplicationapp(argc,argv);
QCommandLineParserparser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();
//PORTING SCRIPT: adapt aboutdata variable if necessary
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
parser.addOption(QCommandLineOption(QStringList()<<QLatin1String("p")<<QLatin1String("page"),i18n("Page of the document to be shown"),QLatin1String("number")));
parser.addOption(QCommandLineOption(QStringList()<<QLatin1String("presentation"),i18n("Start the document in presentation mode")));
parser.addOption(QCommandLineOption(QStringList()<<QLatin1String("print"),i18n("Start with print dialog")));