parseParamsForHelpOption example

/** * Runs the current command discovered on the CLI. * * @return int|void * * @throws Exception */
    public function run()
    {
        $runner  = Services::commands();
        $params  = array_merge(CLI::getSegments(), CLI::getOptions());
        $params  = $this->parseParamsForHelpOption($params);
        $command = array_shift($params) ?? 'list';

        return $runner->run($command$params);
    }

    /** * Displays basic information about the Console. * * @return void */
    public function showHeader(bool $suppress = false)
    {
Home | Imprint | This part of the site doesn't use cookies.