mirror of
https://gitlab.com/gnh1201/pylingva.git
synced 2025-02-06 06:55:26 +00:00
Update cli.py
This commit is contained in:
parent
24f432bdf0
commit
96bc89f671
|
@ -24,10 +24,7 @@ def translate():
|
|||
arg.add_argument("-o", "--output", help="Output file translation result")
|
||||
args = arg.parse_args()
|
||||
|
||||
translate = pylingva()
|
||||
|
||||
if args.url:
|
||||
translate.set_url(args.url)
|
||||
translate = pylingva(args.url)
|
||||
|
||||
if args.list_languages:
|
||||
lang = translate.languages()
|
||||
|
|
Loading…
Reference in New Issue
Block a user