Commit 606420ab5432e6b1dff33798e8ff8572a3ea226a
1 parent
21b92907
Tweak short text for job schema help
Showing
6 changed files
with
30 additions
and
30 deletions
generate_auto_job
| @@ -543,7 +543,7 @@ class Main: | @@ -543,7 +543,7 @@ class Main: | ||
| 543 | schema_value = j | 543 | schema_value = j |
| 544 | if schema_value is None: | 544 | if schema_value is None: |
| 545 | schema_value = re.sub( | 545 | schema_value = re.sub( |
| 546 | - r'--(\S+)', | 546 | + r'--([^\s=]+)', |
| 547 | lambda x: self.option_to_json_key(x.group(1)), | 547 | lambda x: self.option_to_json_key(x.group(1)), |
| 548 | expected[flag]['help']) | 548 | expected[flag]['help']) |
| 549 | is_trivial = False | 549 | is_trivial = False |
job.sums
| 1 | # Generated by generate_auto_job | 1 | # Generated by generate_auto_job |
| 2 | -generate_auto_job 8b3cc47eb96bfd003954d16d51c482e0e015544fdcdc1cbc89b6dcd964f8a2cb | 2 | +generate_auto_job cb0945a8aa05eb4a523d0931b2cf1a70188e4667d42e012d7621b3aba4f32621 |
| 3 | include/qpdf/auto_job_c_att.hh 7ad43bb374c1370ef32ebdcdcb7b73a61d281f7f4e3f12755585872ab30fb60e | 3 | include/qpdf/auto_job_c_att.hh 7ad43bb374c1370ef32ebdcdcb7b73a61d281f7f4e3f12755585872ab30fb60e |
| 4 | include/qpdf/auto_job_c_copy_att.hh 32275d03cdc69b703dd7e02ba0bbe15756e714e9ad185484773a6178dc09e1ee | 4 | include/qpdf/auto_job_c_copy_att.hh 32275d03cdc69b703dd7e02ba0bbe15756e714e9ad185484773a6178dc09e1ee |
| 5 | include/qpdf/auto_job_c_enc.hh 72e138c7b96ed5aacdce78c1dec04b1c20d361faec4f8faf52f64c1d6be99265 | 5 | include/qpdf/auto_job_c_enc.hh 72e138c7b96ed5aacdce78c1dec04b1c20d361faec4f8faf52f64c1d6be99265 |
| 6 | include/qpdf/auto_job_c_main.hh ff776dd643279330fbf59770d1abf5aaeb13f20bfc5f6a25997aaa72a0907b44 | 6 | include/qpdf/auto_job_c_main.hh ff776dd643279330fbf59770d1abf5aaeb13f20bfc5f6a25997aaa72a0907b44 |
| 7 | include/qpdf/auto_job_c_pages.hh 931840b329a36ca0e41401190e04537b47f2867671a6643bfd8da74014202671 | 7 | include/qpdf/auto_job_c_pages.hh 931840b329a36ca0e41401190e04537b47f2867671a6643bfd8da74014202671 |
| 8 | include/qpdf/auto_job_c_uo.hh 0585b7de459fa479d9e51a45fa92de0ff6dee748efc9ec1cedd0dde6cee1ad50 | 8 | include/qpdf/auto_job_c_uo.hh 0585b7de459fa479d9e51a45fa92de0ff6dee748efc9ec1cedd0dde6cee1ad50 |
| 9 | -job.yml 92565dc8023ea880aca5b96c2620f756642a6dafa5ed15546bc2c777c31b218e | 9 | +job.yml effc93a805fb74503be2213ad885238db21991ba3d084fbfeff01183c66cb002 |
| 10 | libqpdf/qpdf/auto_job_decl.hh 9f79396ec459f191be4c5fe34cf88c265cf47355a1a945fa39169d1c94cf04f6 | 10 | libqpdf/qpdf/auto_job_decl.hh 9f79396ec459f191be4c5fe34cf88c265cf47355a1a945fa39169d1c94cf04f6 |
| 11 | -libqpdf/qpdf/auto_job_help.hh a0ab6ab4dde2ad3d3f17ecae3ea274919119329e075061f3a3973535f5e367de | 11 | +libqpdf/qpdf/auto_job_help.hh 6297d355cb37a6183469962ed75d465d62f498a9a49d43cac7af0c9d013a9e1b |
| 12 | libqpdf/qpdf/auto_job_init.hh c244e03e8b83ed7db732920f40aff0134e5f2e78a6edb9473ea4dd1934a8953e | 12 | libqpdf/qpdf/auto_job_init.hh c244e03e8b83ed7db732920f40aff0134e5f2e78a6edb9473ea4dd1934a8953e |
| 13 | libqpdf/qpdf/auto_job_json_decl.hh c5e3fd38a3b0c569eb0c6b4c60953a09cd6bc7d3361a357a81f64fe36af2b0cf | 13 | libqpdf/qpdf/auto_job_json_decl.hh c5e3fd38a3b0c569eb0c6b4c60953a09cd6bc7d3361a357a81f64fe36af2b0cf |
| 14 | libqpdf/qpdf/auto_job_json_init.hh 3f86ce40931ca8f417d050fcd49104d73c1fa4e977ad19d54b372831a8ea17ed | 14 | libqpdf/qpdf/auto_job_json_init.hh 3f86ce40931ca8f417d050fcd49104d73c1fa4e977ad19d54b372831a8ea17ed |
| 15 | -libqpdf/qpdf/auto_job_schema.hh 2ec70dffdd15974d74102b4d7ada9f97449bc28c98be119efee5e15507ed22a8 | 15 | +libqpdf/qpdf/auto_job_schema.hh d2fb9344bb0ed9b60cfa5511e81bea1335ea12997df731db9572de46b1d7f0b2 |
| 16 | manual/_ext/qpdf.py e9ac9d6c70642a3d29281ee5ad92ae2422dee8be9306fb8a0bc9dba0ed5e28f3 | 16 | manual/_ext/qpdf.py e9ac9d6c70642a3d29281ee5ad92ae2422dee8be9306fb8a0bc9dba0ed5e28f3 |
| 17 | -manual/cli.rst a75a7e34aa9aba4f06e9c88cae9a2d9a2aa4e55a08521dde1478e8f2d80aadab | 17 | +manual/cli.rst 280826695c13d69527f49ef3e9de89cb628dc55cdbf2ad1dba1606325874c20a |
job.yml
| @@ -356,7 +356,7 @@ json: | @@ -356,7 +356,7 @@ json: | ||
| 356 | ii-min-bytes: | 356 | ii-min-bytes: |
| 357 | remove-unreferenced-resources: | 357 | remove-unreferenced-resources: |
| 358 | add-attachment: | 358 | add-attachment: |
| 359 | - - _file: "attachment to add" | 359 | + - _file: "file to attach" |
| 360 | creationdate: | 360 | creationdate: |
| 361 | description: | 361 | description: |
| 362 | filename: | 362 | filename: |
| @@ -366,7 +366,7 @@ json: | @@ -366,7 +366,7 @@ json: | ||
| 366 | replace: | 366 | replace: |
| 367 | remove-attachment: | 367 | remove-attachment: |
| 368 | copy-attachments-from: | 368 | copy-attachments-from: |
| 369 | - - _file: "attachment source filename" | 369 | + - _file: "file to copy attachments from" |
| 370 | CopyAtt.password: | 370 | CopyAtt.password: |
| 371 | prefix: | 371 | prefix: |
| 372 | collate: | 372 | collate: |
libqpdf/qpdf/auto_job_help.hh
| @@ -22,10 +22,10 @@ Usage: qpdf [infile] [options] [outfile] | @@ -22,10 +22,10 @@ Usage: qpdf [infile] [options] [outfile] | ||
| 22 | - @- may be used to read arguments from stdin | 22 | - @- may be used to read arguments from stdin |
| 23 | - Later options may override earlier options if contradictory | 23 | - Later options may override earlier options if contradictory |
| 24 | )"); | 24 | )"); |
| 25 | -ap.addOptionHelp("--empty", "usage", "empty input file", R"(Use in place of infile for an empty input. Especially useful | 25 | +ap.addOptionHelp("--empty", "usage", "use empty file as input", R"(Use in place of infile for an empty input. Especially useful |
| 26 | with --pages. | 26 | with --pages. |
| 27 | )"); | 27 | )"); |
| 28 | -ap.addOptionHelp("--replace-input", "usage", "replace input with output", R"(Use in place of outfile to overwrite the input file with the output. | 28 | +ap.addOptionHelp("--replace-input", "usage", "overwrite input with output", R"(Use in place of outfile to overwrite the input file with the output. |
| 29 | )"); | 29 | )"); |
| 30 | ap.addOptionHelp("--job-json-file", "usage", "job JSON file", R"(--job-json-file=file | 30 | ap.addOptionHelp("--job-json-file", "usage", "job JSON file", R"(--job-json-file=file |
| 31 | 31 | ||
| @@ -70,7 +70,7 @@ default provider is shown first. | @@ -70,7 +70,7 @@ default provider is shown first. | ||
| 70 | ap.addHelpTopic("general", "general options", R"(General options control qpdf's behavior in ways that are not | 70 | ap.addHelpTopic("general", "general options", R"(General options control qpdf's behavior in ways that are not |
| 71 | directly related to the operation it is performing. | 71 | directly related to the operation it is performing. |
| 72 | )"); | 72 | )"); |
| 73 | -ap.addOptionHelp("--password", "general", "specify password", R"(--password=password | 73 | +ap.addOptionHelp("--password", "general", "password for encrypted file", R"(--password=password |
| 74 | 74 | ||
| 75 | Specify a password for an encrypted, password-protected file. | 75 | Specify a password for an encrypted, password-protected file. |
| 76 | Not needed for encrypted files without a password. | 76 | Not needed for encrypted files without a password. |
| @@ -796,13 +796,13 @@ specific version or "latest". | @@ -796,13 +796,13 @@ specific version or "latest". | ||
| 796 | )"); | 796 | )"); |
| 797 | ap.addOptionHelp("--json-help", "json", "show format of json output", R"(Describe the format of the JSON output. | 797 | ap.addOptionHelp("--json-help", "json", "show format of json output", R"(Describe the format of the JSON output. |
| 798 | )"); | 798 | )"); |
| 799 | -ap.addOptionHelp("--json-key", "json", "restrict which keys are in json output", R"(--json-key=key | 799 | +ap.addOptionHelp("--json-key", "json", "limit which keys are in json output", R"(--json-key=key |
| 800 | 800 | ||
| 801 | This option is repeatable. If given, only the specified | 801 | This option is repeatable. If given, only the specified |
| 802 | top-level keys will be included in the JSON output. Otherwise, | 802 | top-level keys will be included in the JSON output. Otherwise, |
| 803 | all keys will be included. | 803 | all keys will be included. |
| 804 | )"); | 804 | )"); |
| 805 | -ap.addOptionHelp("--json-object", "json", "restrict which objects are in JSON", R"(--json-object={trailer|obj[,gen]} | 805 | +ap.addOptionHelp("--json-object", "json", "limit which objects are in JSON", R"(--json-object={trailer|obj[,gen]} |
| 806 | 806 | ||
| 807 | This option is repeatable. If given, only specified objects will | 807 | This option is repeatable. If given, only specified objects will |
| 808 | be shown in the "objects" key of the JSON output. Otherwise, all | 808 | be shown in the "objects" key of the JSON output. Otherwise, all |
libqpdf/qpdf/auto_job_schema.hh
| 1 | static constexpr char const* JOB_SCHEMA_DATA = R"({ | 1 | static constexpr char const* JOB_SCHEMA_DATA = R"({ |
| 2 | "inputFile": "input filename", | 2 | "inputFile": "input filename", |
| 3 | - "password": "specify password", | 3 | + "password": "password for encrypted file", |
| 4 | "passwordFile": "read password from a file", | 4 | "passwordFile": "read password from a file", |
| 5 | - "empty": "empty input file", | 5 | + "empty": "use empty file as input", |
| 6 | "outputFile": "output filename", | 6 | "outputFile": "output filename", |
| 7 | - "replaceInput": "replace input with output", | 7 | + "replaceInput": "overwrite input with output", |
| 8 | "qdf": "enable viewing PDF code in a text editor", | 8 | "qdf": "enable viewing PDF code in a text editor", |
| 9 | "preserveUnreferenced": "preserve unreferenced objects", | 9 | "preserveUnreferenced": "preserve unreferenced objects", |
| 10 | "newlineBeforeEndstream": "force a newline before endstream", | 10 | "newlineBeforeEndstream": "force a newline before endstream", |
| @@ -79,10 +79,10 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | @@ -79,10 +79,10 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | ||
| 79 | "showAttachment": "export an embedded file", | 79 | "showAttachment": "export an embedded file", |
| 80 | "json": "show file in json format", | 80 | "json": "show file in json format", |
| 81 | "jsonKey": [ | 81 | "jsonKey": [ |
| 82 | - "restrict which keys are in json output" | 82 | + "limit which keys are in json output" |
| 83 | ], | 83 | ], |
| 84 | "jsonObject": [ | 84 | "jsonObject": [ |
| 85 | - "restrict which objects are in JSON" | 85 | + "limit which objects are in JSON" |
| 86 | ], | 86 | ], |
| 87 | "allowWeakCrypto": "allow insecure cryptographic algorithms", | 87 | "allowWeakCrypto": "allow insecure cryptographic algorithms", |
| 88 | "keepFilesOpen": "manage keeping multiple files open", | 88 | "keepFilesOpen": "manage keeping multiple files open", |
| @@ -101,7 +101,7 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | @@ -101,7 +101,7 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | ||
| 101 | "removeUnreferencedResources": "remove unreferenced page resources", | 101 | "removeUnreferencedResources": "remove unreferenced page resources", |
| 102 | "addAttachment": [ | 102 | "addAttachment": [ |
| 103 | { | 103 | { |
| 104 | - "file": "attachment to add", | 104 | + "file": "file to attach", |
| 105 | "creationdate": "set attachment's creation date", | 105 | "creationdate": "set attachment's creation date", |
| 106 | "description": "set attachment's description", | 106 | "description": "set attachment's description", |
| 107 | "filename": "set attachment's displayed filename", | 107 | "filename": "set attachment's displayed filename", |
| @@ -114,8 +114,8 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | @@ -114,8 +114,8 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | ||
| 114 | "removeAttachment": "remove an embedded file", | 114 | "removeAttachment": "remove an embedded file", |
| 115 | "copyAttachmentsFrom": [ | 115 | "copyAttachmentsFrom": [ |
| 116 | { | 116 | { |
| 117 | - "file": "attachment source filename", | ||
| 118 | - "password": "specify password", | 117 | + "file": "file to copy attachments from", |
| 118 | + "password": "password for encrypted file", | ||
| 119 | "prefix": "key prefix for copying attachments" | 119 | "prefix": "key prefix for copying attachments" |
| 120 | } | 120 | } |
| 121 | ], | 121 | ], |
| @@ -131,7 +131,7 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | @@ -131,7 +131,7 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | ||
| 131 | "pages": [ | 131 | "pages": [ |
| 132 | { | 132 | { |
| 133 | "file": "source for for pages", | 133 | "file": "source for for pages", |
| 134 | - "password": "specify password", | 134 | + "password": "password for encrypted file", |
| 135 | "range": "page range" | 135 | "range": "page range" |
| 136 | } | 136 | } |
| 137 | ], | 137 | ], |
| @@ -139,21 +139,21 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | @@ -139,21 +139,21 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ | ||
| 139 | "rotate": "rotate pages", | 139 | "rotate": "rotate pages", |
| 140 | "overlay": { | 140 | "overlay": { |
| 141 | "file": "source file for overlay", | 141 | "file": "source file for overlay", |
| 142 | - "password": "specify password", | 142 | + "password": "password for encrypted file", |
| 143 | "from": "source pages for underlay/overlay", | 143 | "from": "source pages for underlay/overlay", |
| 144 | "repeat": "overlay/underlay pages to repeat", | 144 | "repeat": "overlay/underlay pages to repeat", |
| 145 | "to": "destination pages for underlay/overlay" | 145 | "to": "destination pages for underlay/overlay" |
| 146 | }, | 146 | }, |
| 147 | "underlay": { | 147 | "underlay": { |
| 148 | "file": "source file for underlay", | 148 | "file": "source file for underlay", |
| 149 | - "password": "specify password", | 149 | + "password": "password for encrypted file", |
| 150 | "from": "source pages for underlay/overlay", | 150 | "from": "source pages for underlay/overlay", |
| 151 | "repeat": "overlay/underlay pages to repeat", | 151 | "repeat": "overlay/underlay pages to repeat", |
| 152 | "to": "destination pages for underlay/overlay" | 152 | "to": "destination pages for underlay/overlay" |
| 153 | }, | 153 | }, |
| 154 | "warningExit0": "exit 0 even with warnings", | 154 | "warningExit0": "exit 0 even with warnings", |
| 155 | "jobJsonFile": "job JSON file", | 155 | "jobJsonFile": "job JSON file", |
| 156 | - "preserveUnreferencedResources": "use removeUnreferencedResourcesNo", | 156 | + "preserveUnreferencedResources": "use removeUnreferencedResources=no", |
| 157 | "requiresPassword": "silently test a file's password", | 157 | "requiresPassword": "silently test a file's password", |
| 158 | "isEncrypted": "silently test whether a file is encrypted" | 158 | "isEncrypted": "silently test whether a file is encrypted" |
| 159 | })"; | 159 | })"; |
manual/cli.rst
| @@ -134,7 +134,7 @@ Related Options | @@ -134,7 +134,7 @@ Related Options | ||
| 134 | 134 | ||
| 135 | .. qpdf:option:: --empty | 135 | .. qpdf:option:: --empty |
| 136 | 136 | ||
| 137 | - .. help: empty input file | 137 | + .. help: use empty file as input |
| 138 | 138 | ||
| 139 | Use in place of infile for an empty input. Especially useful | 139 | Use in place of infile for an empty input. Especially useful |
| 140 | with --pages. | 140 | with --pages. |
| @@ -146,7 +146,7 @@ Related Options | @@ -146,7 +146,7 @@ Related Options | ||
| 146 | 146 | ||
| 147 | .. qpdf:option:: --replace-input | 147 | .. qpdf:option:: --replace-input |
| 148 | 148 | ||
| 149 | - .. help: replace input with output | 149 | + .. help: overwrite input with output |
| 150 | 150 | ||
| 151 | Use in place of outfile to overwrite the input file with the output. | 151 | Use in place of outfile to overwrite the input file with the output. |
| 152 | 152 | ||
| @@ -358,7 +358,7 @@ Related Options | @@ -358,7 +358,7 @@ Related Options | ||
| 358 | 358 | ||
| 359 | .. qpdf:option:: --password=password | 359 | .. qpdf:option:: --password=password |
| 360 | 360 | ||
| 361 | - .. help: specify password | 361 | + .. help: password for encrypted file |
| 362 | 362 | ||
| 363 | Specify a password for an encrypted, password-protected file. | 363 | Specify a password for an encrypted, password-protected file. |
| 364 | Not needed for encrypted files without a password. | 364 | Not needed for encrypted files without a password. |
| @@ -3162,7 +3162,7 @@ Related Options | @@ -3162,7 +3162,7 @@ Related Options | ||
| 3162 | 3162 | ||
| 3163 | .. qpdf:option:: --json-key=key | 3163 | .. qpdf:option:: --json-key=key |
| 3164 | 3164 | ||
| 3165 | - .. help: restrict which keys are in json output | 3165 | + .. help: limit which keys are in json output |
| 3166 | 3166 | ||
| 3167 | This option is repeatable. If given, only the specified | 3167 | This option is repeatable. If given, only the specified |
| 3168 | top-level keys will be included in the JSON output. Otherwise, | 3168 | top-level keys will be included in the JSON output. Otherwise, |
| @@ -3174,7 +3174,7 @@ Related Options | @@ -3174,7 +3174,7 @@ Related Options | ||
| 3174 | 3174 | ||
| 3175 | .. qpdf:option:: --json-object={trailer|obj[,gen]} | 3175 | .. qpdf:option:: --json-object={trailer|obj[,gen]} |
| 3176 | 3176 | ||
| 3177 | - .. help: restrict which objects are in JSON | 3177 | + .. help: limit which objects are in JSON |
| 3178 | 3178 | ||
| 3179 | This option is repeatable. If given, only specified objects will | 3179 | This option is repeatable. If given, only specified objects will |
| 3180 | be shown in the "objects" key of the JSON output. Otherwise, all | 3180 | be shown in the "objects" key of the JSON output. Otherwise, all |