def rst_to_plain_text(text):
    """Minimal converter of reStructuredText to plain text.

    Will work at least for command descriptions.

    :param text: Text to be converted.
    :rtype: str
    """
    import re
    lines = text.splitlines()
    result = []
    for line in lines:
        if line.startswith(':'):
            line = line[1:]
        elif line.endswith('::'):
            line = line[:-1]
        line = re.sub(':doc:`(.+)-help`', '``help \\1``', line)
        result.append(line)
    return '\n'.join(result) + '\n'
