'If there is a single option available one tab completes the option.'

def tab_complete(self):

    opts = self._complete_options()
    if (len(opts) == 1):
        self.set_current_text((opts[0] + os.sep))
        self.hide_completer()
