Cake\Shell\RoutesShell::_splitArgs PHP Method

_splitArgs() protected method

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