def handle(self, *args, **options): config = get_config() with chdir(SQLIBRIST_DIRECTORY): try: options['func'](Args(options), config, connection) except SqlibristException as e: handle_exception(e)
def main(): parser = get_command_parser() args = parser.parse_args() config = LazyConfig(args) try: args.func(args, config) except SqlibristException as e: handle_exception(e)