def format_directive(module, package=None):
    directive = '.. automodule:: %s\n' % makename(package, module)
    for option in OPTIONS:
        directive += '    :%s:\n' % option
    return directive
Create the automodule directive and add the options.
dataset/ETHPy150Open Netflix/security_monkey/generate_docs.py/format_directive