def parser_help_text(help_text):
if help_text is None:<EOL><INDENT>return None, {}<EOL><DEDENT>main_text = '<STR_LIT>'<EOL>params_help = {}<EOL>for line in help_text.splitlines():<EOL><INDENT>line = line.strip()<EOL>match = re.search(r'<STR_LIT>', line)<EOL>if match:<EOL><INDENT>params_help[match.group('<STR_LIT>')] = match.group('<STR_LIT>').strip()<EOL><DEDENT>else:<EOL><INDENT>main_text += line + '<STR_LIT:U+0020>'<EOL><DEDENT><DEDENT>main_text = main_text.strip()<EOL>return main_text, params_help<EOL>
Takes the help text supplied as a doc string and extraxts the
    description and any param arguments.