Changeset View
Changeset View
Standalone View
Standalone View
shell/main.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 31 | { | |||
---|---|---|---|---|---|
44 | parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions); | 44 | parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions); | ||
45 | parser.addVersionOption(); | 45 | parser.addVersionOption(); | ||
46 | parser.addHelpOption(); | 46 | parser.addHelpOption(); | ||
47 | aboutData.setupCommandLine(&parser); | 47 | aboutData.setupCommandLine(&parser); | ||
48 | 48 | | |||
49 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("p") << QStringLiteral("page"), i18n("Page of the document to be shown"), QStringLiteral("number"))); | 49 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("p") << QStringLiteral("page"), i18n("Page of the document to be shown"), QStringLiteral("number"))); | ||
50 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("presentation"), i18n("Start the document in presentation mode"))); | 50 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("presentation"), i18n("Start the document in presentation mode"))); | ||
51 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("print"), i18n("Start with print dialog"))); | 51 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("print"), i18n("Start with print dialog"))); | ||
52 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("print_and_exit"), i18n("Start with print dialog and exit"))); | ||||
52 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("unique"), i18n("\"Unique instance\" control"))); | 53 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("unique"), i18n("\"Unique instance\" control"))); | ||
53 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("noraise"), i18n("Not raise window"))); | 54 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("noraise"), i18n("Not raise window"))); | ||
54 | parser.addPositionalArgument(QStringLiteral("urls"), i18n("Documents to open. Specify '-' to read from stdin.")); | 55 | parser.addPositionalArgument(QStringLiteral("urls"), i18n("Documents to open. Specify '-' to read from stdin.")); | ||
55 | 56 | | |||
56 | parser.process(app); | 57 | parser.process(app); | ||
57 | aboutData.processCommandLine(&parser); | 58 | aboutData.processCommandLine(&parser); | ||
58 | 59 | | |||
59 | // see if we are starting with session management | 60 | // see if we are starting with session management | ||
Show All 27 Lines |