aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2006-12-10 10:49:23 +0000
committerDai Sato <satodai@w3m.jp>2006-12-10 10:49:23 +0000
commitdd02a73fcf0ebfd09989ac04cde013ae4ff2cce6 (patch)
tree3c3b6588273a6e10a635861dd4f84085f1b4a9d3 /main.c
parentmailcap.c (acceptableMimeTypes): change default accept: line (diff)
downloadw3m-dd02a73fcf0ebfd09989ac04cde013ae4ff2cce6.tar.gz
w3m-dd02a73fcf0ebfd09989ac04cde013ae4ff2cce6.zip
add LiveHTTPHeaders-like option: -reqlog.
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.c b/main.c
index b11913f..5f82970 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.252 2006/05/29 12:42:22 inu Exp $ */
+/* $Id: main.c,v 1.253 2006/12/10 10:49:23 inu Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -249,6 +249,7 @@ fusage(FILE * f, int err)
fprintf(f, " -config file specify config file\n");
fprintf(f, " -help print this usage message\n");
fprintf(f, " -version print w3m version\n");
+ fprintf(f, " -reqlog write request logfile\n");
fprintf(f, " -debug DO NOT USE\n");
if (show_params_p)
show_params(f);
@@ -725,8 +726,12 @@ main(int argc, char **argv, char **envp)
else if (!strcmp("-dummy", argv[i])) {
/* do nothing */
}
- else if (!strcmp("-debug", argv[i]))
+ else if (!strcmp("-debug", argv[i])) {
w3m_debug = TRUE;
+ }
+ else if (!strcmp("-reqlog",argv[i])) {
+ w3m_reqlog=rcFile("request.log");
+ }
else {
usage();
}