@staticmethod
def splitCmd(cmdTemplate, content):
    """
        Chose from an optionful and optionless version of a command
        e.g. oo{content} vs oo[opts]{content}
        :param cmdTemplate: Tuple of optionful and optionless versions
        :param content: Comma-separated list of options, the last (possibly only) one being the content
        """
    i = content.rfind(',')
    if i > -1:
        return cmdTemplate[0] % (content[:i], content[i + 1:]) + '\n'
    else:
        return cmdTemplate[1] % content + '\n'
