when calling command from python set not supplied options to proper defaults
Earlier you would get full option spec (short, default, help) for every option,
not supplied as argument (or keyword argument) in function call.
#!/usr/bin/env python
import opster
config_opts=[('c', 'config', 'webshops.ini', 'config file to use')]
@opster.command(config_opts)
def initdb(config):
"""Initialize database"""
pass
@opster.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
if __name__ == '__main__':
opster.dispatch()