author | Alexander Solovyov <piranha@piranha.org.ua> |
Fri, 07 Aug 2009 16:47:36 +0300 | |
changeset 72 | b5bf4c1f3a68 |
parent 45 | 5ee1ba53050e |
child 75 | 2782b2406ba8 |
permissions | -rwxr-xr-x |
#!/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(**opts): """Run development server""" print opts finaloption.dispatch()