From 3d3efcbf234b3275fe1a7774547505b6590171bd Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Mon, 16 Oct 2023 19:36:09 +0100 Subject: [PATCH] lang arg for simple_cli --- ovos_bus_client/scripts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ovos_bus_client/scripts.py b/ovos_bus_client/scripts.py index 9a2dfe6..997d489 100644 --- a/ovos_bus_client/scripts.py +++ b/ovos_bus_client/scripts.py @@ -56,12 +56,12 @@ def ovos_listen(): def simple_cli(): args_count = len(sys.argv) if args_count == 1: + lang = Configuration().get("lang", "en-us") + elif args_count == 2: lang = sys.argv[1] - elif args_count > 1: + else: print("USAGE: ovos-simple-cli [lang]") return - else: - lang = Configuration().get("lang", "en-us") client = MessageBusClient() client.run_in_thread()