'Generate an OEBBook instance from command-line options.'

@classmethod
def generate(cls, opts):

    encoding = opts.encoding
    pretty_print = opts.pretty_print
    return cls(encoding=encoding, pretty_print=pretty_print)
