Skip to content

Commit

Permalink
lang arg for simple_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 16, 2023
1 parent 70d3a60 commit cab300c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ovos_bus_client/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,16 @@ def ovos_listen():
client.close()


def simple_cli(lang=None):
def simple_cli():
args_count = len(sys.argv)
if args_count == 1:
lang = sys.argv[1]
elif args_count > 1:
print("USAGE: ovos-simple-cli [lang]")
return
else:
lang = Configuration().get("lang", "en-us")

client = MessageBusClient()
client.run_in_thread()
if not client.connected_event.is_set():
Expand Down

0 comments on commit cab300c

Please sign in to comment.