OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa8c925
)
Support multi-line argument values (#624)
author
Dan Gardner
<dan@web.nearest.to>
Thu, 1 Aug 2013 20:09:16 +0000
(21:09 +0100)
committer
Dan Gardner
<dan@web.nearest.to>
Thu, 1 Aug 2013 20:09:16 +0000
(21:09 +0100)
php/WP_CLI/Configurator.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/Configurator.php
b/php/WP_CLI/Configurator.php
index
e28c90f
..
239e95f
100644
(file)
--- 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;