From: Aaron Bannert Date: Mon, 7 Oct 2002 01:39:20 +0000 (+0000) Subject: Add -S as a synonym for -t -DDUMP_VHOSTS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=216915531680a7033a08a629500ff75dd20c9c24;p=apache Add -S as a synonym for -t -DDUMP_VHOSTS Submitted by: Thom May Reviewed by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97120 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_main.h b/include/http_main.h index 46c322acc7..62cf673113 100644 --- a/include/http_main.h +++ b/include/http_main.h @@ -65,7 +65,7 @@ * in apr_getopt() format. Use this for default'ing args that the MPM * can safely ignore and pass on from its rewrite_args() handler. */ -#define AP_SERVER_BASEARGS "C:c:D:d:E:e:f:vVlLth?X" +#define AP_SERVER_BASEARGS "C:c:D:d:E:e:f:vVlLtSh?X" #ifdef __cplusplus extern "C" { diff --git a/server/main.c b/server/main.c index 349a1b8f4c..50d557bda2 100644 --- a/server/main.c +++ b/server/main.c @@ -317,7 +317,7 @@ static void usage(process_rec *process) pad); #endif ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, - " %s [-v] [-V] [-h] [-l] [-L] [-t]", pad); + " %s [-v] [-V] [-h] [-l] [-L] [-t] [-S]", pad); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, "Options:"); @@ -384,6 +384,8 @@ static void usage(process_rec *process) ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, " -t -D DUMP_VHOSTS : show parsed settings (currently only " "vhost settings)"); + ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, + " -S : a synonym for -t -D DUMP_VHOSTS"); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, " -t : run syntax check for config files"); @@ -527,7 +529,13 @@ int main(int argc, const char * const argv[]) case 't': configtestonly = 1; break; - + + case 'S': + configtestonly = 1; + new = (char **)apr_array_push(ap_server_config_defines); + *new = "DUMP_VHOSTS"; + break; + case 'h': case '?': usage(process);