function _parseArgs($argv, $short_options, $long_options = null)
    {
        if (!is_array($argv) && $argv !== null) {
            // Find all items, quoted or otherwise
            preg_match_all("/(?:[\"'])(.*?)(?:['\"])|([^\s]+)/", $argv, $av);
            $argv = $av[1];
            foreach ($av[2] as $k => $a) {
                if (empty($a)) {
                    continue;
                }
                $argv[$k] = trim($a) ;
            }
        }
        return Console_Getopt::getopt2($argv, $short_options, $long_options);
    }
function _parseArgs($argv, $short_options, $long_options = null)
    {
        if (!is_array($argv) && $argv !== null) {
            // Find all items, quoted or otherwise
            preg_match_all("/(?:[\"'])(.*?)(?:['\"])|([^\s]+)/", $argv, $av);
            $argv = $av[1];
            foreach ($av[2] as $k => $a) {
                if (empty($a)) {
                    continue;
                }
                $argv[$k] = trim($a) ;
            }
        }
        return Console_Getopt::getopt2($argv, $short_options, $long_options);
    }
function _parseArgs ( $ argv , $ short_options , $ long_options = null ) { if ( ! is_array ( $ argv ) && $ argv !== null ) { // Find all items, quoted or otherwise preg_match_all ( "/(?:[\"'])(.*?)(?:['\"])|([^\s]+)/" , $ argv , $ av ) ; $ argv = $ av [ 1 ] ; foreach ( $ av [ 2 ] as $ k => $ a ) { if ( empty ( $ a ) ) { continue ; } $ argv [ $ k ] = trim ( $ a ) ; } } return Console_Getopt :: getopt2 ( $ argv , $ short_options , $ long_options ) ; }
returns the commandline arguments of a function

@param    string  $argv           the commandline
@param    string  $short_options  the allowed option short-tags
@param    string  $long_options   the allowed option long-tags
@return   array   the given options and there values
@static
@access private
returns the commandline arguments of a function