diff --git a/abcfield.py b/abcfield.py index 1da24a5..a342a69 100755 --- a/abcfield.py +++ b/abcfield.py @@ -285,11 +285,7 @@ if __name__ == "__main__": help='input ABC file') args = parser.parse_args() - res = False - if args.input: - path = pathlib.Path(args.input.name) - with path.open() as f: - res = process(f, path.parent, args) - else: - res = process(sys.stdin, ".", args) + path = pathlib.Path(args.input.name) + with path.open() as f: + res = process(f, path.parent, args) sys.exit(int(not res))