(html_file)
Build the synopsis of command-line options.
Build the synopsis of command-line options.
Build the synopsis of command - line options .
def _embed_options(html_file):
    """Build the synopsis of command-line options."""
    parser = etree.HTMLParser(encoding='utf-8')
    doc = etree.parse(html_file, parser)
    for node in doc.xpath('//span[@id="placeholder-options"]'):
        node.clear()
        node.extend(_option for _option in _get_options(html_file))
    with open(html_file, 'w', encoding='utf-8') as htmlf:
        htmlf.write(etree.tostring(doc, method='html').decode('utf-8'))
def _embed_options ( html_file ) : parser = etree . HTMLParser ( encoding = 'utf-8' ) doc = etree . parse ( html_file , parser ) for node in doc . xpath ( '//span[@id="placeholder-options"]' ) : node . clear ( ) node . extend ( _option for _option in _get_options ( html_file ) ) with open ( html_file , 'w' , encoding = 'utf-8' ) as htmlf : htmlf . write ( etree . tostring ( doc , method = 'html' ) . decode ( 'utf-8' ) )