File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
88## [ Unreleased]
99### Added
1010* Add contribution guidelines -- currently we are unable to accept Pull Requests.
11+ * Add ` --glossary-id ` argument for CLI document command.
1112### Changed
1213* Improve README.
1314### Deprecated
Original file line number Diff line number Diff line change @@ -238,6 +238,12 @@ def add_common_arguments(subparser: argparse.ArgumentParser):
238238 default = deepl .Formality .DEFAULT .value ,
239239 help = "desired formality for translation" ,
240240 )
241+ subparser .add_argument (
242+ "--glossary-id" ,
243+ dest = "glossary" ,
244+ type = str ,
245+ help = "ID of glossary to use for translation" ,
246+ )
241247
242248 # create the parser for the "text" command
243249 parser_text = subparsers .add_parser (
@@ -269,12 +275,6 @@ def add_common_arguments(subparser: argparse.ArgumentParser):
269275 action = "store_true" ,
270276 help = "print detected source language for each text" ,
271277 )
272- parser_text .add_argument (
273- "--glossary-id" ,
274- dest = "glossary" ,
275- type = str ,
276- help = "ID of glossary to use for translation" ,
277- )
278278
279279 tag_handling_group = parser_text .add_argument_group (
280280 "tag-handling" ,
You can’t perform that action at this time.
0 commit comments