mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Add --json to Origin launch as well
This commit is contained in:
parent
b5d4224664
commit
156b4716f4
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue