protected function askToSkip() {
        $question = 'This part is optional. Do you like to configure it? [y|N]:';
        $answer = strtolower(IO::in($question));

        switch ($answer) {
            case 'yes':
            case 'y':
            case '1':
            case 'true':
                return false;
            case 'no':
            case 'n':
            case '0':
            case 'false':
            case '':
                return true;
            default:
                $this->log->warning('Excuse me, what do you mean?');

                return $this->askToSkip();
        }
    }
protected function askToSkip() {
        $question = 'This part is optional. Do you like to configure it? [y|N]:';
        $answer = strtolower(IO::in($question));

        switch ($answer) {
            case 'yes':
            case 'y':
            case '1':
            case 'true':
                return false;
            case 'no':
            case 'n':
            case '0':
            case 'false':
            case '':
                return true;
            default:
                $this->log->warning('Excuse me, what do you mean?');

                return $this->askToSkip();
        }
    }
protected function askToSkip ( ) { $ question = 'This part is optional. Do you like to configure it? [y|N]:' ; $ answer = strtolower ( IO :: in ( $ question ) ) ; switch ( $ answer ) { case 'yes' : case 'y' : case '1' : case 'true' : return false ; case 'no' : case 'n' : case '0' : case 'false' : case '' : return true ; default : $ this -> log -> warning ( 'Excuse me, what do you mean?' ) ; return $ this -> askToSkip ( ) ; } }
Ask to skip optional part

@return bool true means yes, skip it; false means no, configure it

@throws Exception on error
Ask to skip optional part