public function handle($boris)
    {
        $args = getopt('hvr:', array(
            'help',
            'version',
            'require:'
        ));
        
        foreach ($args as $option => $value) {
            switch ($option) {
                /*
                 * Sets files to load at startup, may be used multiple times,
                 * i.e: boris -r test.php,foo/bar.php -r ba/foo.php --require hey.php
                 */
                case 'r':
                case 'require':
                    $this->_handleRequire($boris, $value);
                    break;
                
                /*
                 * Show Usage info
                 */
                case 'h':
                case 'help':
                    $this->_handleUsageInfo();
                    break;
                
                /*
                 * Show version
                 */
                case 'v':
                case 'version':
                    $this->_handleVersion();
                    break;
            }
        }
    }
public function handle($boris)
    {
        $args = getopt('hvr:', array(
            'help',
            'version',
            'require:'
        ));
        
        foreach ($args as $option => $value) {
            switch ($option) {
                /*
                 * Sets files to load at startup, may be used multiple times,
                 * i.e: boris -r test.php,foo/bar.php -r ba/foo.php --require hey.php
                 */
                case 'r':
                case 'require':
                    $this->_handleRequire($boris, $value);
                    break;
                
                /*
                 * Show Usage info
                 */
                case 'h':
                case 'help':
                    $this->_handleUsageInfo();
                    break;
                
                /*
                 * Show version
                 */
                case 'v':
                case 'version':
                    $this->_handleVersion();
                    break;
            }
        }
    }
public function handle ( $ boris ) { $ args = getopt ( 'hvr:' , array ( 'help' , 'version' , 'require:' ) ) ; foreach ( $ args as $ option => $ value ) { switch ( $ option ) { /*
                 * Sets files to load at startup, may be used multiple times,
                 * i.e: boris -r test.php,foo/bar.php -r ba/foo.php --require hey.php
                 */ case 'r' : case 'require' : $ this -> _handleRequire ( $ boris , $ value ) ; break ; /*
                 * Show Usage info
                 */ case 'h' : case 'help' : $ this -> _handleUsageInfo ( ) ; break ; /*
                 * Show version
                 */ case 'v' : case 'version' : $ this -> _handleVersion ( ) ; break ; } } }
Accept the REPL object and perform any setup necessary from the CLI flags.

@param Boris $boris
Accept the REPL object and perform any setup necessary from the CLI flags .