spansh.py: pretty print raw output
This commit is contained in:
parent
1a76ca59d4
commit
d2af6b90e4
1 changed files with 2 additions and 0 deletions
|
@ -201,6 +201,8 @@ try:
|
||||||
out = getOldStationsInSystem(args.system, args.raw)
|
out = getOldStationsInSystem(args.system, args.raw)
|
||||||
else:
|
else:
|
||||||
out = getOldStations(args.raw)
|
out = getOldStations(args.raw)
|
||||||
|
if args.raw:
|
||||||
|
out = JSON.dumps(out, indent=2)
|
||||||
elif args.subcommand == "systemexists":
|
elif args.subcommand == "systemexists":
|
||||||
out = systemExists(args.system, args.raw)
|
out = systemExists(args.system, args.raw)
|
||||||
except ServerError as e:
|
except ServerError as e:
|
||||||
|
|
Loading…
Reference in a new issue