Commit ca374a3d authored by Dominik Charousset's avatar Dominik Charousset

Fix handling of STDIN input

parent 879a76ab
......@@ -42,7 +42,7 @@ def main():
args = parser.parse_args()
filepath = args.log
if filepath == '-':
read_lines(fileinput.input(), args.ids)
read_lines(sys.stdin, args.ids)
else:
if not os.path.isfile(filepath):
sys.exit()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment