diff options
-rwxr-xr-x | bvg-grabber.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bvg-grabber.py b/bvg-grabber.py index 318aded..fcaf318 100755 --- a/bvg-grabber.py +++ b/bvg-grabber.py @@ -56,10 +56,9 @@ if __name__ == '__main__': query = ActualDepartureQueryApi(args.station) res = query.call() - if args.file == 'stdout': + if args.file in ('stdout', '-'): print(res.to_json, file=sys.stdout) else: file = open(args.file, 'w') print(res.to_json, file=file) file.close() - |