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 cab300c commit 3d3efcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ovos_bus_client/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3d3efcb

Please sign in to comment.