

def ask(self, question, default=None):
    '\n        Prompt the user for input.\n\n        :param question: The question to ask\n        :type question: str\n\n        :param default: The default value\n        :type default: str or None\n\n        :rtype: str\n        '
    if isinstance(question, Question):
        return self.get_helper('question').ask(self.input, self.output, question)
    return self.output.ask(question, default)

dataset/ETHPy150Open sdispater/cleo/cleo/commands/command.py Command.ask/original