public function handle(array $argv)
    {
        if (\count($argv) < 2) {
            return $this->showHelp();
        }

        $exitCode = 255;

        try {
            $command = $this->parse($argv);
            $this->doAction($command);
            $exitCode = 0;
        } catch (\Throwable $e) {
            $this->outputHelper()->printTrace($e);
        }

        return ($this->onExit)($exitCode);
    }
public function handle(array $argv)
    {
        if (\count($argv) < 2) {
            return $this->showHelp();
        }

        $exitCode = 255;

        try {
            $command = $this->parse($argv);
            $this->doAction($command);
            $exitCode = 0;
        } catch (\Throwable $e) {
            $this->outputHelper()->printTrace($e);
        }

        return ($this->onExit)($exitCode);
    }
public function handle ( array $ argv ) { if ( \ count ( $ argv ) < 2 ) { return $ this -> showHelp ( ) ; } $ exitCode = 255 ; try { $ command = $ this -> parse ( $ argv ) ; $ this -> doAction ( $ command ) ; $ exitCode = 0 ; } catch ( \ Throwable $ e ) { $ this -> outputHelper ( ) -> printTrace ( $ e ) ; } return ( $ this -> onExit ) ( $ exitCode ) ; }
Handle the request, invoke action and call exit handler.

@param array $argv

@return mixed
Handle the request invoke action and call exit handler .