X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/blobdiff_plain/58b5e33d371e4b566fd59a93003f9d6dfcb3b8ed..a2cfea891e714d4b10878318949639c3a2007331:/xcatch.in diff --git a/xcatch.in b/xcatch.in index 5c940f1..d6e51d1 100644 --- a/xcatch.in +++ b/xcatch.in @@ -404,8 +404,8 @@ def main(): name = '' catcher.watch_file(stdin) else: - name = file - catcher.watch(open(opts.file, 'r')) + name = opts.file + catcher.watch_file(open(opts.file, 'r')) elif len(args) == 0: name = '' catcher.watch_file(stdin)