Ignore the "-" option to accept w3m - as "read from stdin"

Bug-Debian: https://github.com/tats/w3m/issues/87
This commit is contained in:
Tatsuya Kinoshita
2021-03-26 23:10:40 +09:00
parent d1ab25b6e9
commit 2bbcd7902a
+1 -1
View File
@@ -786,7 +786,7 @@ main(int argc, char **argv, char **envp)
usage();
}
}
else if (!strcmp("-dummy", argv[i])) {
else if (!strcmp("-", argv[i]) || !strcmp("-dummy", argv[i])) {
/* do nothing */
}
else if (!strcmp("-debug", argv[i])) {