mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-28 19:01:02 +00:00
Add --disable-files-translation flag
This commit is contained in:
parent
9e272cb80c
commit
5bb8ed7375
2 changed files with 8 additions and 0 deletions
|
@ -115,6 +115,11 @@ _default_options_objects = [
|
||||||
'name': 'SUGGESTIONS',
|
'name': 'SUGGESTIONS',
|
||||||
'default_value': False,
|
'default_value': False,
|
||||||
'value_type': 'bool'
|
'value_type': 'bool'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': 'DISABLE_FILES_TRANSLATION',
|
||||||
|
'default_value': False,
|
||||||
|
'value_type': 'bool'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,9 @@ def main():
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--suggestions", default=DEFARGS['SUGGESTIONS'], action="store_true", help="Allow user suggestions"
|
"--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()
|
args = parser.parse_args()
|
||||||
app = create_app(args)
|
app = create_app(args)
|
||||||
|
|
Loading…
Reference in a new issue