Fossil SCM

Make the option handling for 'test-th-hook' consistent with the other TH1 test commands.

mistachkin 2015-02-16 03:44 trunk
Commit 0afcc93d3c14b78b6a66be825b5476de9cfebc3e
1 file changed +3 -2
+3 -2
--- src/th_main.c
+++ src/th_main.c
@@ -2110,12 +2110,13 @@
21102110
int rc = TH_OK;
21112111
int nResult = 0;
21122112
char *zResult;
21132113
int forceCgi, fullHttpReply;
21142114
Th_InitTraceLog();
2115
- forceCgi = find_option("th-force-cgi", 0, 0)!=0;
2116
- fullHttpReply = find_option("th-full-http", 0, 0)!=0;
2115
+ forceCgi = find_option("cgi", 0, 0)!=0;
2116
+ fullHttpReply = find_option("http", 0, 0)!=0;
2117
+ if( fullHttpReply ) forceCgi = 1;
21172118
if( forceCgi ) Th_ForceCgi(fullHttpReply);
21182119
if( g.argc<5 ){
21192120
usage("TYPE NAME FLAGS");
21202121
}
21212122
if( fossil_stricmp(g.argv[2], "cmdhook")==0 ){
21222123
--- src/th_main.c
+++ src/th_main.c
@@ -2110,12 +2110,13 @@
2110 int rc = TH_OK;
2111 int nResult = 0;
2112 char *zResult;
2113 int forceCgi, fullHttpReply;
2114 Th_InitTraceLog();
2115 forceCgi = find_option("th-force-cgi", 0, 0)!=0;
2116 fullHttpReply = find_option("th-full-http", 0, 0)!=0;
 
2117 if( forceCgi ) Th_ForceCgi(fullHttpReply);
2118 if( g.argc<5 ){
2119 usage("TYPE NAME FLAGS");
2120 }
2121 if( fossil_stricmp(g.argv[2], "cmdhook")==0 ){
2122
--- src/th_main.c
+++ src/th_main.c
@@ -2110,12 +2110,13 @@
2110 int rc = TH_OK;
2111 int nResult = 0;
2112 char *zResult;
2113 int forceCgi, fullHttpReply;
2114 Th_InitTraceLog();
2115 forceCgi = find_option("cgi", 0, 0)!=0;
2116 fullHttpReply = find_option("http", 0, 0)!=0;
2117 if( fullHttpReply ) forceCgi = 1;
2118 if( forceCgi ) Th_ForceCgi(fullHttpReply);
2119 if( g.argc<5 ){
2120 usage("TYPE NAME FLAGS");
2121 }
2122 if( fossil_stricmp(g.argv[2], "cmdhook")==0 ){
2123

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button