aboutsummaryrefslogtreecommitdiffstats
path: root/manual/cli.rst
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-22 21:39:54 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commit67f9d0b7d5857a73c974f5a54cd1abbe65231fce (patch)
tree8d1507c77201a7ce856c4baf4801156555b499df /manual/cli.rst
parent8dea480c9f065fdac76f848ed9ec7a07fd1e9870 (diff)
downloadqpdf-67f9d0b7d5857a73c974f5a54cd1abbe65231fce.tar.zst
cli.rst: remove () from end of short help
This is used to generate a schema for the job json, which can't contain `)"` because it breaks the R"(...)" syntax in C++. While C++ accepts R"anything(...)anything" to avoid this, as of this writing, MSVC 2019 doesn't understand that. For now, just avoid it by removing parentheses from the end of short help.
Diffstat (limited to 'manual/cli.rst')
-rw-r--r--manual/cli.rst12
1 files changed, 10 insertions, 2 deletions
diff --git a/manual/cli.rst b/manual/cli.rst
index f8c1091f..0238ba16 100644
--- a/manual/cli.rst
+++ b/manual/cli.rst
@@ -13,6 +13,14 @@
for additional help. Command line arguments can be referenced using
:qpdf:ref:`--option`. They also appear in an index.
+ Note: 2022-01-22: because short help text is used in the "schema"
+ json object for QPDFJob json, we can't end short text with a ``)``
+ character since doing so would cause ``)"`` to appear in the string
+ literal. We use the R"(...)" syntax for these literals, and that
+ looks like an end delimiter. While the C++ spec allows
+ R"anything(...)anything" specifically for this purpose, the MSVC in
+ CI at the time of this writing did not support that construct.
+
STYLE NOTES
In this text, :samp:`...` and ``...`` are used somewhat
@@ -1643,7 +1651,7 @@ Related Options
.. qpdf:option:: --remove-page-labels
- .. help: remove page labels (numbers)
+ .. help: remove explicit page numbers
Exclude page labels (explicit page numbers) from the output file.
@@ -2707,7 +2715,7 @@ These options are valid between :qpdf:ref:`--add-attachment` and ``--``.
.. qpdf:option:: --mimetype=type/subtype
- .. help: attachment mime type (e.g. application/pdf)
+ .. help: attachment mime type, e.g. application/pdf
Specify the mime type for the attachment, such as text/plain,
application/pdf, image/png, etc.