From: scribu Date: Mon, 5 Aug 2013 22:18:32 +0000 (+0300) Subject: use $p_value instead of $p_name for positional parameters X-Git-Tag: v0.11.1~10^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1512802316f68d44968c70c9765cbd6ec333e93d;p=wvm%2Fwvm.git use $p_value instead of $p_name for positional parameters --- diff --git a/php/WP_CLI/SynopsisParser.php b/php/WP_CLI/SynopsisParser.php index d7e4c1ba..1da1504e 100644 --- a/php/WP_CLI/SynopsisParser.php +++ b/php/WP_CLI/SynopsisParser.php @@ -42,7 +42,7 @@ class SynopsisParser { if ( '--=' === $token ) { $param['type'] = 'generic'; - } elseif ( preg_match( "/^<$p_name>$/", $token, $matches ) ) { + } elseif ( preg_match( "/^<$p_value>$/", $token, $matches ) ) { $param['type'] = 'positional'; } elseif ( preg_match( "/^--$p_name/", $token, $matches ) ) { $param['name'] = $matches[1];