[cli] Add --json to Origin launch as well

This commit is contained in:
derrod 2021-09-28 05:20:40 +02:00
parent b5d4224664
commit 156b4716f4

View file

@ -585,6 +585,10 @@ class LegendaryCLI:
exit(1)
origin_uri = self.core.get_origin_uri(args.app_name, args.offline)
if args.json:
print(json.dumps(dict(uri=origin_uri)))
return
logger.debug(f'Opening Origin URI: {origin_uri}')
if os.name == 'nt':
return webbrowser.open(origin_uri)