Fix argument parsing

This commit is contained in:
Lloyd Weehuizen 2013-11-24 15:50:27 +13:00
parent 5a71043ab0
commit 5d53c259cf

View File

@ -142,7 +142,7 @@ function arguments ( $args ){
array_shift( $args ); array_shift( $args );
$args = join( $args, ' ' ); $args = join( $args, ' ' );
preg_match_all('/ (--[\w\-]+ (?:[= ] [^-]+ [^\s-] )? ) | (-\w+) | (\w+) /x', $args, $match ); preg_match_all('/ (--[\w\-]+ (?:[= ] [^-\s]+ )? ) | (-\w+) | (\w+) /x', $args, $match );
$args = array_shift( $match ); $args = array_shift( $match );
$ret = array( $ret = array(