Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes a CLI bug where the region config value wasn't being passed into the main method #111

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Changelog
---------
3.7.1
-----

* Bugfix for region flag to CLI

3.7.0
-----

Expand Down
2 changes: 1 addition & 1 deletion translate/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def config_file(ctx, from_lang, to_lang, provider, secret_access_key):
required=False,
)
@click.argument('text', nargs=-1, type=click.STRING, required=True)
def main(from_lang, to_lang, provider, secret_access_key, output_only, pro, text):
def main(from_lang, to_lang, provider, secret_access_key, output_only, pro, text, region):
"""
Python command line tool to make on line translations

Expand Down
2 changes: 1 addition & 1 deletion translate/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.7.0"
__version__ = "3.7.1"
Loading