Sync man page commands with the Command Line Options sections of the Okular handbook

This commit is contained in:
Iztok Fister Jr. 2023-12-29 21:32:06 +01:00 committed by Sune Vuorela
parent badeec3f1a
commit 97b380b4bc
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ is aimed to show documents in different formats.</para>
<varlistentry>
<term><option>-p, --page <replaceable>number</replaceable></option></term>
<listitem>
<para>Open a given page in the document.</para>
<para>Open a page with a given number in the document.</para>
</listitem>
</varlistentry>
@ -88,7 +88,7 @@ is aimed to show documents in different formats.</para>
<varlistentry>
<term><option>--find <replaceable>string</replaceable></option></term>
<listitem>
<para>Find a string on the text.</para>
<para>Tries to find and highlight a given string in the document. Only works if just one document is given as an argument of the okular command.</para>
</listitem>
</varlistentry>

View File

@ -73,7 +73,7 @@ int main(int argc, char **argv)
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("unique"), i18n("\"Unique instance\" control")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("noraise"), i18n("Not raise window")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("find"), i18n("Find a string on the text"), QStringLiteral("string")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("editor-cmd"), i18n("sets the external editor command"), QStringLiteral("string")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("editor-cmd"), i18n("Sets the external editor command"), QStringLiteral("string")));
parser.addPositionalArgument(QStringLiteral("urls"), i18n("Documents to open. Specify '-' to read from stdin."));
parser.process(app);