aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/auto_job_help.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-20 13:25:54 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-20 15:16:25 +0200
commitdc8df962d8f0d93595a4e036bb29bc3498abc35f (patch)
treedc0d45d7fe2d1e1a29b1b5d84e9e5c73ce72d51a /libqpdf/qpdf/auto_job_help.hh
parent907df2c823710319e53c0ba6583a1ede4ee5413d (diff)
downloadqpdf-dc8df962d8f0d93595a4e036bb29bc3498abc35f.tar.zst
Make version default to latest for --json-output (like --json)
Diffstat (limited to 'libqpdf/qpdf/auto_job_help.hh')
-rw-r--r--libqpdf/qpdf/auto_job_help.hh11
1 files changed, 6 insertions, 5 deletions
diff --git a/libqpdf/qpdf/auto_job_help.hh b/libqpdf/qpdf/auto_job_help.hh
index 7d88155b..e4bab551 100644
--- a/libqpdf/qpdf/auto_job_help.hh
+++ b/libqpdf/qpdf/auto_job_help.hh
@@ -795,8 +795,8 @@ ap.addOptionHelp("--json", "json", "show file in JSON format", R"(--json[=versio
Generate a JSON representation of the file. This is described in
depth in the JSON section of the manual. "version" may be a
-specific version or "latest". Run qpdf --json-help for a
-description of the generated JSON object.
+specific version or "latest" (the default). Run qpdf --json-help
+for a description of the generated JSON object.
)");
ap.addOptionHelp("--json-help", "json", "show format of JSON output", R"(Describe the format of the JSON output by writing to standard
output a JSON object with the same keys and with values
@@ -832,11 +832,12 @@ name as the prefix for stream data files. Whatever is given here
will be appended with -nnn to create the name of the file that
will contain the data for the stream stream in object nnn.
)");
-ap.addOptionHelp("--json-output", "json", "serialize to JSON", R"(--json-output=version
+ap.addOptionHelp("--json-output", "json", "serialize to JSON", R"(--json-output[=version]
The output file will be qpdf JSON format at the given version.
-Only version 2 is supported. See also --json-stream-data
-and --json-stream-prefix
+"version" may be a specific version or "latest" (the default).
+Version 1 is not supported. See also --json-stream-data
+and --json-stream-prefix.
)");
ap.addOptionHelp("--json-input", "json", "input file is qpdf JSON", R"(Treat the input file as a JSON file in qpdf JSON format as
written by qpdf --json-output. See the "QPDF JSON Format"