From 5bb8ed73754c3c2240fe5809e1f37f58e68b16c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Thuret?= Date: Mon, 25 Oct 2021 17:00:44 +0200 Subject: [PATCH] Add --disable-files-translation flag --- app/default_values.py | 5 +++++ app/main.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/default_values.py b/app/default_values.py index d41843a..8808d17 100644 --- a/app/default_values.py +++ b/app/default_values.py @@ -115,6 +115,11 @@ _default_options_objects = [ 'name': 'SUGGESTIONS', 'default_value': False, 'value_type': 'bool' + }, + { + 'name': 'DISABLE_FILES_TRANSLATION', + 'default_value': False, + 'value_type': 'bool' } ] diff --git a/app/main.py b/app/main.py index ffaef87..e8b6878 100644 --- a/app/main.py +++ b/app/main.py @@ -105,6 +105,9 @@ def main(): parser.add_argument( "--suggestions", default=DEFARGS['SUGGESTIONS'], action="store_true", help="Allow user suggestions" ) + parser.add_argument( + "--disable-files-translation", default=DEFARGS['DISABLE_FILES_TRANSLATION'], action="store_true", help="Disable files translation" + ) args = parser.parse_args() app = create_app(args)