From ad32841aaa52c6e228255e12480a169c6bf59c93 Mon Sep 17 00:00:00 2001 From: "roberto@precise64" Date: Mon, 13 Feb 2012 19:22:32 +0100 Subject: [PATCH] fixed wrong definition of --route option --- uwsgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwsgi.c b/uwsgi.c index eb8d9df6..f6a672bb 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -315,7 +315,7 @@ static struct uwsgi_option uwsgi_base_options[] = { {"vhost", no_argument, 0, "enable virtualhosting mode (based on SERVER_NAME variable)", uwsgi_opt_true, &uwsgi.vhost, 0}, {"vhost-host", no_argument, 0, "enable virtualhosting mode (based on HTTP_HOST variable)", uwsgi_opt_true, &uwsgi.vhost_host, UWSGI_OPT_VHOST}, #ifdef UWSGI_ROUTING - {"route", no_argument, 0, "add a route", uwsgi_opt_add_route, NULL, 0}, + {"route", required_argument, 0, "add a route", uwsgi_opt_add_route, NULL, 0}, #endif {"add-header", required_argument, 0, "automatically add HTTP headers to response", uwsgi_opt_add_string_list, &uwsgi.additional_headers, 0}, {"check-static", required_argument, 0, "check for static files in the specified directory", uwsgi_opt_check_static, NULL, 0},