From: Dan Gardner Date: Thu, 1 Aug 2013 20:09:16 +0000 (+0100) Subject: Support multi-line argument values (#624) X-Git-Tag: v0.11.0~10 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8868ee7da7e520a789666823bd7f088e0402967f;p=wvm%2Fwvm.git Support multi-line argument values (#624) --- diff --git a/php/WP_CLI/Configurator.php b/php/WP_CLI/Configurator.php index e28c90f1..239e95f2 100644 --- a/php/WP_CLI/Configurator.php +++ b/php/WP_CLI/Configurator.php @@ -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;