Skip to content

Commit 71c0857

Browse files
Add --glossary-id argument for CLI document command
1 parent f81e646 commit 71c0857

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

deepl/__main__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)