OSDN Git Service

Exclude assoc args with that have an optional value from being unset
authorjmslbam <jmslbam@gmail.com>
Thu, 1 Aug 2013 21:12:55 +0000 (23:12 +0200)
committerscribu <mail@scribu.net>
Mon, 19 Aug 2013 22:42:05 +0000 (01:42 +0300)
commit7bd41b7880f70c9deca692d6ea446e74a8e4b8f9
treebb1b06a09cbe9e2491cf14a1c45bb9817c5a2a3b
parent4579bbcdb53c53f0c6e31956e555e73a1959cf47
Exclude assoc args with that have an optional value from being unset

An assoc args with an option value shouldn't trigger the message "--foo parameter needs a value".
Because it doesn't needs a value. Else it would defeat the whole purpose of having `--foo[=<bar>]`.
It needs to be available within the command so you can still do something with it.
php/WP_CLI/SynopsisValidator.php