aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-03-26 14:10:40 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-03-26 14:10:40 +0000
commit2bbcd7902a5e001fd962b43895cc75c69da68c4b (patch)
tree7142eb3451abab3c024edd460c67d080572d12b6 /main.c
parentUpdate ChangeLog (diff)
downloadw3m-2bbcd7902a5e001fd962b43895cc75c69da68c4b.tar.gz
w3m-2bbcd7902a5e001fd962b43895cc75c69da68c4b.zip
Ignore the "-" option to accept `w3m -` as "read from stdin"
Bug-Debian: https://github.com/tats/w3m/issues/87
Diffstat (limited to '')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5e44eb4..5d2904e 100644
--- a/main.c
+++ b/main.c
@@ -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])) {