Fix cli args
This commit is contained in:
+2
-1
@@ -110,7 +110,8 @@ final class CLI {
|
||||
*/
|
||||
public function form(array $args, array $assoc_args):void {
|
||||
list($locations) = $args;
|
||||
extract($assoc_args);
|
||||
$all = $assoc_args['all'] ?? false;
|
||||
$disable = $assoc_args['disable'] ?? false;
|
||||
|
||||
if (empty($locations) && !$all) {
|
||||
WP_CLI::error('Please specify one or more form locations, or use --all.');
|
||||
|
||||
Reference in New Issue
Block a user