Merge pull request #9 from jaygooby/master
Output valid JSON with the `--json` option
This commit is contained in:
commit
81445a1911
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue