src/Kisma/Core/Services/SeedCli.php
public function getArguments( $arguments = array() )
    {
        $_results = array(
            'original' => $arguments,
            'rebuilt'  => array(),
            'options'  => array(),
        );

        //	Our return options array...
        $_options = array();

        //	Rebuild args...
        for ( $_i = 0, $_count = count( $arguments ); $_i < $_count; $_i++ )
        {
            $_argument = $arguments[$_i];
            $_value = trim( substr( $_argument, 0, strpos( $_argument, '=' ) ) );

            if ( $_value && $_value[0] == '-' && $_value[1] == '-' )
            {
                $_options[substr( $_value, 2 )] = str_replace( $_value . '=', '', $_argument );
            }
            elseif ( $_value && $_value[0] == '-' )
            {
                $_options[substr( $_value, 1 )] = str_replace( $_value . '=', '', $_argument );
            }
            else
            {
                $_results['rebuilt'][] = $arguments[$_i];
            }
        }

        $_results['options'] = $_options;

        //	Return the processed results...
        return $_results;
    }
public function getArguments( $arguments = array() )
    {
        $_results = array(
            'original' => $arguments,
            'rebuilt'  => array(),
            'options'  => array(),
        );

        //	Our return options array...
        $_options = array();

        //	Rebuild args...
        for ( $_i = 0, $_count = count( $arguments ); $_i < $_count; $_i++ )
        {
            $_argument = $arguments[$_i];
            $_value = trim( substr( $_argument, 0, strpos( $_argument, '=' ) ) );

            if ( $_value && $_value[0] == '-' && $_value[1] == '-' )
            {
                $_options[substr( $_value, 2 )] = str_replace( $_value . '=', '', $_argument );
            }
            elseif ( $_value && $_value[0] == '-' )
            {
                $_options[substr( $_value, 1 )] = str_replace( $_value . '=', '', $_argument );
            }
            else
            {
                $_results['rebuilt'][] = $arguments[$_i];
            }
        }

        $_results['options'] = $_options;

        //	Return the processed results...
        return $_results;
    }
public function getArguments ( $ arguments = array ( ) ) { $ _results = array ( 'original' => $ arguments , 'rebuilt' => array ( ) , 'options' => array ( ) , ) ; //	Our return options array... $ _options = array ( ) ; //	Rebuild args... for ( $ _i = 0 , $ _count = count ( $ arguments ) ; $ _i < $ _count ; $ _i ++ ) { $ _argument = $ arguments [ $ _i ] ; $ _value = trim ( substr ( $ _argument , 0 , strpos ( $ _argument , '=' ) ) ) ; if ( $ _value && $ _value [ 0 ] == '-' && $ _value [ 1 ] == '-' ) { $ _options [ substr ( $ _value , 2 ) ] = str_replace ( $ _value . '=' , '' , $ _argument ) ; } elseif ( $ _value && $ _value [ 0 ] == '-' ) { $ _options [ substr ( $ _value , 1 ) ] = str_replace ( $ _value . '=' , '' , $ _argument ) ; } else { $ _results [ 'rebuilt' ] [ ] = $ arguments [ $ _i ] ; } } $ _results [ 'options' ] = $ _options ; //	Return the processed results... return $ _results ; }
Processes the command line arguments

@param array $arguments

@return array
Processes the command line arguments