'Generate a Writer instance from command-line options.'

@classmethod
def generate(cls, opts):

    version = opts.opf_version
    page_map = opts.adobe_page_map
    pretty_print = opts.pretty_print
    return cls(version=version, page_map=page_map, pretty_print=pretty_print)
