Git commit 97b380b4bc2917b33c05e49a09bc9fefc9cc9135 by Sune Vuorela, on behalf 
of Iztok Fister Jr..
Committed on 12/01/2024 at 15:30.
Pushed by sune into branch 'master'.

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

M  +2    -2    doc/man-okular.1.docbook
M  +1    -1    shell/main.cpp

https://invent.kde.org/graphics/okular/-/commit/97b380b4bc2917b33c05e49a09bc9fefc9cc9135

diff --git a/doc/man-okular.1.docbook b/doc/man-okular.1.docbook
index d106d1615b..2548efce5a 100644
--- a/doc/man-okular.1.docbook
+++ b/doc/man-okular.1.docbook
@@ -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>
 
diff --git a/shell/main.cpp b/shell/main.cpp
index ac37af3e64..2208555e51 100644
--- a/shell/main.cpp
+++ b/shell/main.cpp
@@ -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);

Reply via email to