Merge pull request #944 from lloydw/master

Fix argument parsing
This commit is contained in:
Shoghi Cervantes 2013-11-24 02:52:17 -08:00
commit 2483614459

View File

@ -142,7 +142,7 @@ function arguments ( $args ){
array_shift( $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 );
$ret = array(