OSDN Git Service

Support multi-line argument values (#624)
authorDan Gardner <dan@web.nearest.to>
Thu, 1 Aug 2013 20:09:16 +0000 (21:09 +0100)
committerDan Gardner <dan@web.nearest.to>
Thu, 1 Aug 2013 20:09:16 +0000 (21:09 +0100)
php/WP_CLI/Configurator.php

index e28c90f..239e95f 100644 (file)
@@ -45,7 +45,7 @@ class Configurator {
                                $mixed_args[] = array( $matches[1], false );
                        } elseif ( preg_match( '|^--([^=]+)$|', $arg, $matches ) ) {
                                $mixed_args[] = array( $matches[1], true );
-                       } elseif ( preg_match( '|^--([^=]+)=(.+)|', $arg, $matches ) ) {
+                       } elseif ( preg_match( '|^--([^=]+)=(.+)|s', $arg, $matches ) ) {
                                $mixed_args[] = array( $matches[1], $matches[2] );
                        } else {
                                $regular_args[] = $arg;