more tests
authorAlexander Solovyov <piranha@piranha.org.ua>
Sat, 18 Jul 2009 00:03:35 +0300
changeset 45 5ee1ba53050e
parent 44 bb7358d6b48f
child 46 188325c309d8
more tests
test_cmd.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test_cmd.py	Sat Jul 18 00:03:35 2009 +0300
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+
+import finaloption
+
+config_opts=[('c', 'config', 'webshops.ini', 'config file to use')]
+
+
+@finaloption.command(config_opts)
+def initdb(config):
+    """Initialize database"""
+    pass
+
+
+@finaloption.command(options=config_opts + [
+    ('h', 'host', 'localhost', 'The host for the application.'),
+    ('p', 'port', 5000, 'The port for the server.'),
+    ('', 'nolint', False, 'Do not use LintMiddleware')
+])
+def runserver(config, host, port, nolint):
+    """Run development server"""
+
+    pass
+
+
+finaloption.dispatch()