summaryrefslogtreecommitdiff
path: root/paste/servers/scgi_server
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-05-18 07:37:44 +0000
committerianb <devnull@localhost>2005-05-18 07:37:44 +0000
commit0f2e939f36746f130b1bd67a1797b58688d5ac1c (patch)
treeb43210578bae15f5b8786342e97432555625927b /paste/servers/scgi_server
parent430c3392dc166a4f9bec48f70c8bf7b6b140560d (diff)
downloadpaste-0f2e939f36746f130b1bd67a1797b58688d5ac1c.tar.gz
Made app_templates pluggable; added serve command to paste-setup
Diffstat (limited to 'paste/servers/scgi_server')
-rw-r--r--paste/servers/scgi_server/__init__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/paste/servers/scgi_server/__init__.py b/paste/servers/scgi_server/__init__.py
index a621f07..9f56609 100644
--- a/paste/servers/scgi_server/__init__.py
+++ b/paste/servers/scgi_server/__init__.py
@@ -1,3 +1,4 @@
+from optparse import Option
from paste.util import thirdparty
thirdparty.add_package('scgi')
from scgiserver import serve_application
@@ -7,8 +8,12 @@ def serve(conf, app):
serve_application(app, prefix, port=int(conf.get('port', 4000)))
options = [
- ('port', 'Port to serve on (default 4000).'),
- ('root_url', 'The URL level to expect for incoming connections; if not set and this is not bound to /, then SCRIPT_NAME and PATH_INFO may be incorrect.'),
+ Option('--port',
+ metavar="PORT",
+ help='Port to serve on (default 4000).'),
+ Option('--root-url',
+ metavar="URL",
+ help='The URL level to expect for incoming connections; if not set and this is not bound to /, then SCRIPT_NAME and PATH_INFO may be incorrect.'),
]
description = """\