def findpossible(cmd, table):
    choice = {}
    for e in table.keys():
        aliases = aliases_(e)
        found = None
        if cmd in aliases:
            found = cmd
        else:
            for a in aliases:
                if a.startswith(cmd):
                    found = a
                    break
        if found is not None:
            choice[found] = (aliases, table[e])

    return choice
Return cmd -> (aliases, command table entry)
dataset/ETHPy150Open kennethreitz-archive/argue/argue/core.py/findpossible