diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-10-29 22:18:59 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-10-29 22:19:10 +0100 |
commit | 765649f4fb8796bb580c81dd64759d39cf5c226e (patch) | |
tree | 9f7da7631f2144d55398bcdea8c4001bf6010592 | |
parent | 502a8c9cfec988534b0f2a0f7904f52023c303d3 (diff) | |
download | notyet-765649f4fb8796bb580c81dd64759d39cf5c226e.tar.gz notyet-765649f4fb8796bb580c81dd64759d39cf5c226e.tar.xz notyet-765649f4fb8796bb580c81dd64759d39cf5c226e.zip |
allow -f - for stdin
-rwxr-xr-x | notyet | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/notyet b/notyet index bb6b769..62a72d4 100755 --- a/notyet +++ b/notyet @@ -206,6 +206,7 @@ files = [File.expand_path("~/.notyet")] if files.empty? t = nil files.each { |file| + file = "/dev/stdin" if file == "-" File.open(file) { |f| d = parse(f, file) if t |