Merge pull request #9 from jaygooby/master

Output valid JSON with the `--json` option
This commit is contained in:
Seb Seager 2022-03-15 11:40:56 -04:00 committed by GitHub
commit 81445a1911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -428,7 +428,7 @@ if __name__ == "__main__":
def save(data, filename):
if a.o is None:
print(data)
json.dump(data, sys.stdout, indent=4)
else:
out_dir_parent = os.path.abspath(
os.path.expanduser(os.path.expandvars(a.o))