Skip to content

Commit 7a76fb1

Browse files
author
peter
committed
-i arg
1 parent 8463fc6 commit 7a76fb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ int main(int argc, const char **argv)
110110
opt_debug = 1;
111111
else if (!strncmp(argv[i], "-w", 2))
112112
opt_width = atoi(argv[i] + 2);
113+
else if (!strncmp(argv[i], "-i", 2))
114+
freopen(argv[i] + 2, "r", stdin);
113115
else if (!game)
114116
game = argv[i];
115117
}

0 commit comments

Comments
 (0)