diff options
| author | ianb <devnull@localhost> | 2005-05-18 07:37:44 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-05-18 07:37:44 +0000 |
| commit | 0f2e939f36746f130b1bd67a1797b58688d5ac1c (patch) | |
| tree | b43210578bae15f5b8786342e97432555625927b /paste/servers/console_server.py | |
| parent | 430c3392dc166a4f9bec48f70c8bf7b6b140560d (diff) | |
| download | paste-0f2e939f36746f130b1bd67a1797b58688d5ac1c.tar.gz | |
Made app_templates pluggable; added serve command to paste-setup
Diffstat (limited to 'paste/servers/console_server.py')
| -rw-r--r-- | paste/servers/console_server.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/paste/servers/console_server.py b/paste/servers/console_server.py index 92f4456..02512a9 100644 --- a/paste/servers/console_server.py +++ b/paste/servers/console_server.py @@ -1,4 +1,5 @@ from paste import wsgilib +from optparse import Option def serve(conf, app): url = conf.get('url', '/') @@ -30,3 +31,13 @@ def serve(conf, app): if errors: sys.stderr.write('-'*25 + ' Errors ' + '-'*25 + '\n') sys.stderr.write(errors + '\n') + +description = """\ +Displays a single request to stdout +""" + +options = [ + Option('--url', + metavar='URL', + help="The URL (not including domain or port!) to GET"), + ] |
