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:
10904b7
)
use $p_value instead of $p_name for positional parameters
author
scribu
<mail@scribu.net>
Mon, 5 Aug 2013 22:18:32 +0000
(
01:18
+0300)
committer
scribu
<mail@scribu.net>
Mon, 5 Aug 2013 22:18:32 +0000
(
01:18
+0300)
php/WP_CLI/SynopsisParser.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/SynopsisParser.php
b/php/WP_CLI/SynopsisParser.php
index
d7e4c1b
..
1da1504
100644
(file)
--- a/
php/WP_CLI/SynopsisParser.php
+++ b/
php/WP_CLI/SynopsisParser.php
@@
-42,7
+42,7
@@
class SynopsisParser {
if ( '--<field>=<value>' === $token ) {
$param['type'] = 'generic';
- } elseif ( preg_match( "/^<$p_
nam
e>$/", $token, $matches ) ) {
+ } elseif ( preg_match( "/^<$p_
valu
e>$/", $token, $matches ) ) {
$param['type'] = 'positional';
} elseif ( preg_match( "/^--$p_name/", $token, $matches ) ) {
$param['name'] = $matches[1];