We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b84cf19 commit a2a9295Copy full SHA for a2a9295
1 file changed
deepl/__main__.py
@@ -3,6 +3,7 @@
3
# license that can be found in the LICENSE file.
4
5
import argparse
6
+import json
7
import deepl
8
import logging
9
import os
@@ -322,6 +323,15 @@ def add_common_arguments(subparser: argparse.ArgumentParser):
322
323
type=str,
324
help="ID of glossary to use for translation",
325
)
326
+ subparser.add_argument(
327
+ "--extra-body-parameters",
328
+ dest="extra_body_parameters",
329
+ type=json.loads,
330
+ default=None,
331
+ help="additional body parameters to include in the API request, "
332
+ "specified as a JSON object string, for example: "
333
+ '\'{"tag_handling": "xml", "show_billed_characters": true}\'',
334
+ )
335
336
# create the parser for the "text" command
337
parser_text = subparsers.add_parser(
0 commit comments