Fossil SCM
Make the option handling for 'test-th-hook' consistent with the other TH1 test commands.
Commit
0afcc93d3c14b78b6a66be825b5476de9cfebc3e
Parent
d44207ff43b0aaa…
1 file changed
+3
-2
+3
-2
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -2110,12 +2110,13 @@ | ||
| 2110 | 2110 | int rc = TH_OK; |
| 2111 | 2111 | int nResult = 0; |
| 2112 | 2112 | char *zResult; |
| 2113 | 2113 | int forceCgi, fullHttpReply; |
| 2114 | 2114 | 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; | |
| 2117 | 2118 | if( forceCgi ) Th_ForceCgi(fullHttpReply); |
| 2118 | 2119 | if( g.argc<5 ){ |
| 2119 | 2120 | usage("TYPE NAME FLAGS"); |
| 2120 | 2121 | } |
| 2121 | 2122 | if( fossil_stricmp(g.argv[2], "cmdhook")==0 ){ |
| 2122 | 2123 |
| --- 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 |