def getsupportedcommands(qhlp, dostrip=True):
    """Parse qHLP answer and return list of available command names.
    @param qhlp : Answer of qHLP() as string.
    @param dostrip : If True strip first and last line from 'qhlp'.
    @return : List of supported command names (not function names).
    """
    qhlp = qhlp.splitlines()
    if dostrip:
        qhlp = qhlp[1:-1]
    cmds = []
    for line in qhlp:
        line = line.upper()
        cmds.append(line.split()[0].strip())
    return cmds