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:
caf035f
)
ignore repeating parameters in enough_positionals()
author
scribu
<mail@scribu.net>
Tue, 30 Jul 2013 01:59:06 +0000
(
04:59
+0300)
committer
scribu
<mail@scribu.net>
Tue, 30 Jul 2013 02:00:24 +0000
(
05:00
+0300)
This isn't necessarily the best approach, but it matches previous behaviour.
(see parent commit)
php/WP_CLI/SynopsisValidator.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/SynopsisValidator.php
b/php/WP_CLI/SynopsisValidator.php
index
902b537
..
4b62a36
100644
(file)
--- a/
php/WP_CLI/SynopsisValidator.php
+++ b/
php/WP_CLI/SynopsisValidator.php
@@
-16,7
+16,8
@@
class SynopsisValidator {
public function enough_positionals( $args ) {
$positional = $this->query_spec( array(
'type' => 'positional',
- 'optional' => false
+ 'optional' => false,
+ 'repeating' => false
) );
return count( $args ) >= count( $positional );