protected function _splitArgs($args)
    {
        $out = [];
        foreach ($args as $arg) {
            if (strpos($arg, ':') !== false) {
                list($key, $value) = explode(':', $arg);
                if (in_array($value, ['true', 'false'])) {
                    $value = $value === 'true';
                }
                $out[$key] = $value;
            } else {
                $out[] = $arg;
            }
        }

        return $out;
    }
protected function _splitArgs($args)
    {
        $out = [];
        foreach ($args as $arg) {
            if (strpos($arg, ':') !== false) {
                list($key, $value) = explode(':', $arg);
                if (in_array($value, ['true', 'false'])) {
                    $value = $value === 'true';
                }
                $out[$key] = $value;
            } else {
                $out[] = $arg;
            }
        }

        return $out;
    }
protected function _splitArgs ( $ args ) { $ out = [ ] ; foreach ( $ args as $ arg ) { if ( strpos ( $ arg , ':' ) !== false ) { list ( $ key , $ value ) = explode ( ':' , $ arg ) ; if ( in_array ( $ value , [ 'true' , 'false' ] ) ) { $ value = $ value === 'true' ; } $ out [ $ key ] = $ value ; } else { $ out [ ] = $ arg ; } } return $ out ; }
Split the CLI arguments into a hash.

@param array $args The arguments to split.
@return array
Split the CLI arguments into a hash .