fixed wrong definition of --route option

This commit is contained in:
roberto@precise64
2012-02-13 19:22:32 +01:00
parent 2a3771dccf
commit ad32841aaa
+1 -1
View File
@@ -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},