'Command completion routine for autorun'

def complete_autorun(self, text, line, arglist, state, begidx, endidx):

    if (state == 1):
        return [item for item in ('on', 'off') if item.lower().startswith(text.lower())]
    return ['']
