def parse_django_adminopt_node(env, sig, signode):
from sphinx.domains.std import option_desc_re<EOL>count = <NUM_LIT:0><EOL>firstname = '<STR_LIT>'<EOL>for m in option_desc_re.finditer(sig):<EOL><INDENT>optname, args = m.groups()<EOL>if count:<EOL><INDENT>signode += addnodes.desc_addname('<STR_LIT:U+002CU+0020>', '<STR_LIT:U+002CU+0020>')<EOL><DEDENT>signode += addnodes.desc_name(optname, optname)<EOL>signode += addnodes.desc_addname(args, args)<EOL>if not count:<EOL><INDENT>firstname = optname<EOL><DEDENT>count += <NUM_LIT:1><EOL><DEDENT>if not count:<EOL><INDENT>for m in simple_option_desc_re.finditer(sig):<EOL><INDENT>optname, args = m.groups()<EOL>if count:<EOL><INDENT>signode += addnodes.desc_addname('<STR_LIT:U+002CU+0020>', '<STR_LIT:U+002CU+0020>')<EOL><DEDENT>signode += addnodes.desc_name(optname, optname)<EOL>signode += addnodes.desc_addname(args, args)<EOL>if not count:<EOL><INDENT>firstname = optname<EOL><DEDENT>count += <NUM_LIT:1><EOL><DEDENT><DEDENT>if not firstname:<EOL><INDENT>raise ValueError<EOL><DEDENT>return firstname<EOL>
A copy of sphinx.directives.CmdoptionDesc.parse_signature()