File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## [ Unreleased]
9
9
### Added
10
10
* Add contribution guidelines -- currently we are unable to accept Pull Requests.
11
+ * Add ` --glossary-id ` argument for CLI document command.
11
12
### Changed
12
13
* Improve README.
13
14
### Deprecated
Original file line number Diff line number Diff line change @@ -238,6 +238,12 @@ def add_common_arguments(subparser: argparse.ArgumentParser):
238
238
default = deepl .Formality .DEFAULT .value ,
239
239
help = "desired formality for translation" ,
240
240
)
241
+ subparser .add_argument (
242
+ "--glossary-id" ,
243
+ dest = "glossary" ,
244
+ type = str ,
245
+ help = "ID of glossary to use for translation" ,
246
+ )
241
247
242
248
# create the parser for the "text" command
243
249
parser_text = subparsers .add_parser (
@@ -269,12 +275,6 @@ def add_common_arguments(subparser: argparse.ArgumentParser):
269
275
action = "store_true" ,
270
276
help = "print detected source language for each text" ,
271
277
)
272
- parser_text .add_argument (
273
- "--glossary-id" ,
274
- dest = "glossary" ,
275
- type = str ,
276
- help = "ID of glossary to use for translation" ,
277
- )
278
278
279
279
tag_handling_group = parser_text .add_argument_group (
280
280
"tag-handling" ,
You can’t perform that action at this time.
0 commit comments